From 010f37f47b9c15935a6113cd82e43f0673122016 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Fri, 17 Apr 2020 07:29:57 -0400 Subject: Bug 1422197 - Add fast path to get DocGroup in binding code for [CEReactions] Tag #1375 --- dom/base/CustomElementRegistry.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'dom/base/CustomElementRegistry.h') diff --git a/dom/base/CustomElementRegistry.h b/dom/base/CustomElementRegistry.h index a736e3019..eacf568c9 100644 --- a/dom/base/CustomElementRegistry.h +++ b/dom/base/CustomElementRegistry.h @@ -27,6 +27,7 @@ struct CustomElementData; struct ElementDefinitionOptions; class CallbackFunction; class CustomElementReaction; +class DocGroup; class Function; class Promise; @@ -513,6 +514,8 @@ private: public: nsISupports* GetParentObject() const; + DocGroup* GetDocGroup() const; + virtual JSObject* WrapObject(JSContext* aCx, JS::Handle aGivenProto) override; void Define(const nsAString& aName, Function& aFunctionConstructor, -- cgit v1.2.3