summaryrefslogtreecommitdiffstats
path: root/dom/base/CustomElementRegistry.h
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2020-01-02 21:25:47 -0500
committerGaming4JC <g4jc@hyperbola.info>2020-01-26 15:50:09 -0500
commit5222f6e9daa4cb74b404f769b23510b3d600efd9 (patch)
treee00a760b5b662dcfb35e2849ea1e9d83c85617e2 /dom/base/CustomElementRegistry.h
parent244277a3fa428b70ba46cf611dbe1905733515eb (diff)
downloadUXP-5222f6e9daa4cb74b404f769b23510b3d600efd9.tar
UXP-5222f6e9daa4cb74b404f769b23510b3d600efd9.tar.gz
UXP-5222f6e9daa4cb74b404f769b23510b3d600efd9.tar.lz
UXP-5222f6e9daa4cb74b404f769b23510b3d600efd9.tar.xz
UXP-5222f6e9daa4cb74b404f769b23510b3d600efd9.zip
Bug 1274159 - Part 2-2: Support HTMLConstructor WebIDL extended attribute for custom elements;
Tag UXP Issue #1344
Diffstat (limited to 'dom/base/CustomElementRegistry.h')
-rw-r--r--dom/base/CustomElementRegistry.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/dom/base/CustomElementRegistry.h b/dom/base/CustomElementRegistry.h
index 9034dd7ea..8ef0785af 100644
--- a/dom/base/CustomElementRegistry.h
+++ b/dom/base/CustomElementRegistry.h
@@ -128,6 +128,10 @@ struct CustomElementDefinition
// The document custom element order.
uint32_t mDocOrder;
+
+ bool IsCustomBuiltIn() {
+ return mType != mLocalName;
+ }
};
class CustomElementRegistry final : public nsISupports,
@@ -155,6 +159,9 @@ public:
CustomElementDefinition* LookupCustomElementDefinition(
const nsAString& aLocalName, const nsAString* aIs = nullptr) const;
+ CustomElementDefinition* LookupCustomElementDefinition(
+ JSContext* aCx, JSObject *aConstructor) const;
+
/**
* Enqueue created callback or register upgrade candidate for
* newly created custom elements, possibly extending an existing type.