From d163c367d9ee5f13769b8580b97bcc511fdd13cd Mon Sep 17 00:00:00 2001 From: Gaming4JC Date: Sun, 19 Jan 2020 09:57:36 -0500 Subject: Bug 483155 - Put content creator function pointers onto nsHtml5ElementName. This is all the manual work for Bug 483155, minus the added functionality to disable SVG and MathML which can be done at any time and are out of scope. Tag UXP Issue #1344 --- dom/html/HTMLElement.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'dom/html/HTMLElement.cpp') diff --git a/dom/html/HTMLElement.cpp b/dom/html/HTMLElement.cpp index b2f23b9317..d3901bdf31 100644 --- a/dom/html/HTMLElement.cpp +++ b/dom/html/HTMLElement.cpp @@ -52,3 +52,12 @@ NS_NewHTMLElement(already_AddRefed&& aNodeInfo, { return new mozilla::dom::HTMLElement(aNodeInfo); } + +// Distinct from the above in order to have function pointer that compared unequal +// to a function pointer to the above. +nsGenericHTMLElement* +NS_NewCustomElement(already_AddRefed&& aNodeInfo, + mozilla::dom::FromParser aFromParser) +{ + return new mozilla::dom::HTMLElement(aNodeInfo); +} -- cgit v1.2.3