From 5cf46e2f87f4f6294d02d96c7905b069c9975eee Mon Sep 17 00:00:00 2001 From: Gaming4JC Date: Fri, 3 Jan 2020 18:50:56 -0500 Subject: Bug 1341693 - Don't need to check GetDocShell() when creating CustomElementRegistry; Tag UXP Issue #1344 --- dom/base/CustomElementRegistry.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'dom/base/CustomElementRegistry.h') 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 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. -- cgit v1.2.3