summaryrefslogtreecommitdiffstats
path: root/dom/base/CustomElementRegistry.h
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2020-01-03 18:50:56 -0500
committerGaming4JC <g4jc@hyperbola.info>2020-01-26 15:50:11 -0500
commit5cf46e2f87f4f6294d02d96c7905b069c9975eee (patch)
tree181ea678ca02fe40cd10ced900cf619cf8ced585 /dom/base/CustomElementRegistry.h
parent3a97503b361b0b5ff1b5d8948a74497710f2a095 (diff)
downloadUXP-5cf46e2f87f4f6294d02d96c7905b069c9975eee.tar
UXP-5cf46e2f87f4f6294d02d96c7905b069c9975eee.tar.gz
UXP-5cf46e2f87f4f6294d02d96c7905b069c9975eee.tar.lz
UXP-5cf46e2f87f4f6294d02d96c7905b069c9975eee.tar.xz
UXP-5cf46e2f87f4f6294d02d96c7905b069c9975eee.zip
Bug 1341693 - Don't need to check GetDocShell() when creating CustomElementRegistry;
Tag UXP Issue #1344
Diffstat (limited to 'dom/base/CustomElementRegistry.h')
-rw-r--r--dom/base/CustomElementRegistry.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/dom/base/CustomElementRegistry.h b/dom/base/CustomElementRegistry.h
index b3b4d7c0f..8fdf28289 100644
--- a/dom/base/CustomElementRegistry.h
+++ b/dom/base/CustomElementRegistry.h
@@ -178,11 +178,13 @@ public:
public:
static bool IsCustomElementEnabled(JSContext* aCx = nullptr,
JSObject* aObject = nullptr);
- static already_AddRefed<CustomElementRegistry> Create(nsPIDOMWindowInner* aWindow);
+
static void ProcessTopElementQueue();
static void XPCOMShutdown();
+ explicit CustomElementRegistry(nsPIDOMWindowInner* aWindow);
+
/**
* Looking up a custom element definition.
* https://html.spec.whatwg.org/#look-up-a-custom-element-definition
@@ -227,11 +229,8 @@ public:
void PopAndInvokeElementQueue();
private:
- explicit CustomElementRegistry(nsPIDOMWindowInner* aWindow);
~CustomElementRegistry();
- bool Init();
-
/**
* Registers an unresolved custom element that is a candidate for
* upgrade when the definition is registered via registerElement.