summaryrefslogtreecommitdiff
path: root/parser
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2020-01-19 19:44:57 -0500
committerGaming4JC <g4jc@hyperbola.info>2020-01-26 15:50:44 -0500
commit827bf5c00e2980e159b51cb9ae3357e76c99bc8e (patch)
tree22e1c07ed44f9679aadc6d6c5b9cae7882efc004 /parser
parentc2b9ea24203e35e7aeecced0b05901ac9899912b (diff)
downloaduxp-827bf5c00e2980e159b51cb9ae3357e76c99bc8e.tar.gz
Fix Build: We don't have SVG or MathML prefs yet
See Bug 1173199 / 1216893 Tag UXP Issue mcp-graveyard/UXP#1344
Diffstat (limited to 'parser')
-rw-r--r--parser/html/nsHtml5TreeOperation.cpp24
1 files changed, 0 insertions, 24 deletions
diff --git a/parser/html/nsHtml5TreeOperation.cpp b/parser/html/nsHtml5TreeOperation.cpp
index 0a9a574eba..0c5aad566e 100644
--- a/parser/html/nsHtml5TreeOperation.cpp
+++ b/parser/html/nsHtml5TreeOperation.cpp
@@ -464,7 +464,6 @@ nsHtml5TreeOperation::CreateSVGElement(
mozilla::dom::SVGContentCreatorFunction aCreator)
{
nsCOMPtr<nsIContent> newElement;
- if (MOZ_LIKELY(aNodeInfoManager->SVGEnabled())) {
RefPtr<dom::NodeInfo> nodeInfo = aNodeInfoManager->GetNodeInfo(
aName, nullptr, kNameSpaceID_SVG, nsIDOMNode::ELEMENT_NODE);
MOZ_ASSERT(nodeInfo, "Got null nodeinfo.");
@@ -472,19 +471,6 @@ nsHtml5TreeOperation::CreateSVGElement(
mozilla::DebugOnly<nsresult> rv =
aCreator(getter_AddRefs(newElement), nodeInfo.forget(), aFromParser);
MOZ_ASSERT(NS_SUCCEEDED(rv) && newElement);
- } else {
- RefPtr<dom::NodeInfo> nodeInfo = aNodeInfoManager->GetNodeInfo(
- aName, nullptr, kNameSpaceID_disabled_SVG, nsIDOMNode::ELEMENT_NODE);
- MOZ_ASSERT(nodeInfo, "Got null nodeinfo.");
-
- // The mismatch between NS_NewXMLElement and SVGContentCreatorFunction
- // argument types is annoying.
- nsCOMPtr<dom::Element> xmlElement;
- mozilla::DebugOnly<nsresult> rv =
- NS_NewXMLElement(getter_AddRefs(xmlElement), nodeInfo.forget());
- MOZ_ASSERT(NS_SUCCEEDED(rv) && xmlElement);
- newElement = xmlElement;
- }
dom::Element* newContent = newElement->AsElement();
aBuilder->HoldElement(newElement.forget());
@@ -524,7 +510,6 @@ nsHtml5TreeOperation::CreateMathMLElement(nsIAtom* aName,
nsHtml5DocumentBuilder* aBuilder)
{
nsCOMPtr<dom::Element> newElement;
- if (MOZ_LIKELY(aNodeInfoManager->MathMLEnabled())) {
RefPtr<dom::NodeInfo> nodeInfo = aNodeInfoManager->GetNodeInfo(
aName, nullptr, kNameSpaceID_MathML, nsIDOMNode::ELEMENT_NODE);
NS_ASSERTION(nodeInfo, "Got null nodeinfo.");
@@ -532,15 +517,6 @@ nsHtml5TreeOperation::CreateMathMLElement(nsIAtom* aName,
mozilla::DebugOnly<nsresult> rv =
NS_NewMathMLElement(getter_AddRefs(newElement), nodeInfo.forget());
MOZ_ASSERT(NS_SUCCEEDED(rv) && newElement);
- } else {
- RefPtr<dom::NodeInfo> nodeInfo = aNodeInfoManager->GetNodeInfo(
- aName, nullptr, kNameSpaceID_disabled_MathML, nsIDOMNode::ELEMENT_NODE);
- NS_ASSERTION(nodeInfo, "Got null nodeinfo.");
-
- mozilla::DebugOnly<nsresult> rv =
- NS_NewXMLElement(getter_AddRefs(newElement), nodeInfo.forget());
- MOZ_ASSERT(NS_SUCCEEDED(rv) && newElement);
- }
dom::Element* newContent = newElement;
aBuilder->HoldElement(newElement.forget());