summaryrefslogtreecommitdiffstats
path: root/dom/html/HTMLElement.cpp
diff options
context:
space:
mode:
authorNew Tobin Paradigm <email@mattatobin.com>2020-01-26 17:13:16 -0500
committerGitHub <noreply@github.com>2020-01-26 17:13:16 -0500
commit22ed46f7cca6d388e7e9e2bf53851ab488cc62ab (patch)
treefb5b7a509abe61a05bf6f3f88371271be4e5ccaa /dom/html/HTMLElement.cpp
parenta1cce3b2b00bbd9f4983013ddd8934a7bccb9e99 (diff)
parent3c70b297c7be12b7d7e120de04a38f40b600928b (diff)
downloadUXP-22ed46f7cca6d388e7e9e2bf53851ab488cc62ab.tar
UXP-22ed46f7cca6d388e7e9e2bf53851ab488cc62ab.tar.gz
UXP-22ed46f7cca6d388e7e9e2bf53851ab488cc62ab.tar.lz
UXP-22ed46f7cca6d388e7e9e2bf53851ab488cc62ab.tar.xz
UXP-22ed46f7cca6d388e7e9e2bf53851ab488cc62ab.zip
Merge pull request #1374 from g4jc/custom_elementsv1
Custom Elements v1
Diffstat (limited to 'dom/html/HTMLElement.cpp')
-rw-r--r--dom/html/HTMLElement.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/dom/html/HTMLElement.cpp b/dom/html/HTMLElement.cpp
index b2f23b931..d3901bdf3 100644
--- a/dom/html/HTMLElement.cpp
+++ b/dom/html/HTMLElement.cpp
@@ -52,3 +52,12 @@ NS_NewHTMLElement(already_AddRefed<mozilla::dom::NodeInfo>&& 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<mozilla::dom::NodeInfo>&& aNodeInfo,
+ mozilla::dom::FromParser aFromParser)
+{
+ return new mozilla::dom::HTMLElement(aNodeInfo);
+}