summaryrefslogtreecommitdiffstats
path: root/parser/html
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
commite2fc7a9d49e383d1b68b8bbc074e483a4e12fd97 (patch)
tree22e1c07ed44f9679aadc6d6c5b9cae7882efc004 /parser/html
parent950275abe6d3b4c98a7d1f535575a626cb6f505b (diff)
downloadUXP-e2fc7a9d49e383d1b68b8bbc074e483a4e12fd97.tar
UXP-e2fc7a9d49e383d1b68b8bbc074e483a4e12fd97.tar.gz
UXP-e2fc7a9d49e383d1b68b8bbc074e483a4e12fd97.tar.lz
UXP-e2fc7a9d49e383d1b68b8bbc074e483a4e12fd97.tar.xz
UXP-e2fc7a9d49e383d1b68b8bbc074e483a4e12fd97.zip
Fix Build: We don't have SVG or MathML prefs yet
See Bug 1173199 / 1216893 Tag UXP Issue #1344
Diffstat (limited to 'parser/html')
-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 0a9a574eb..0c5aad566 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());