summaryrefslogtreecommitdiffstats
path: root/dom/html/nsGenericHTMLElement.h
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/nsGenericHTMLElement.h
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/nsGenericHTMLElement.h')
-rw-r--r--dom/html/nsGenericHTMLElement.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/dom/html/nsGenericHTMLElement.h b/dom/html/nsGenericHTMLElement.h
index 72039f266..edef2eeef 100644
--- a/dom/html/nsGenericHTMLElement.h
+++ b/dom/html/nsGenericHTMLElement.h
@@ -1590,6 +1590,15 @@ protected:
NS_INTERFACE_MAP_ENTRY_CONDITIONAL(_interface, \
mNodeInfo->Equals(nsGkAtoms::_tag))
+namespace mozilla {
+namespace dom {
+
+typedef nsGenericHTMLElement* (*HTMLContentCreatorFunction)(
+ already_AddRefed<mozilla::dom::NodeInfo>&&,
+ mozilla::dom::FromParser aFromParser);
+
+} // namespace dom
+} // namespace mozilla
/**
* A macro to declare the NS_NewHTMLXXXElement() functions.
@@ -1638,6 +1647,13 @@ nsGenericHTMLElement*
NS_NewHTMLElement(already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo,
mozilla::dom::FromParser aFromParser = mozilla::dom::NOT_FROM_PARSER);
+// 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 = mozilla::dom::NOT_FROM_PARSER);
+
NS_DECLARE_NS_NEW_HTML_ELEMENT(Shared)
NS_DECLARE_NS_NEW_HTML_ELEMENT(SharedList)
NS_DECLARE_NS_NEW_HTML_ELEMENT(SharedObject)