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 --- layout/style/nsComputedDOMStyle.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'layout/style/nsComputedDOMStyle.h') diff --git a/layout/style/nsComputedDOMStyle.h b/layout/style/nsComputedDOMStyle.h index e94d8dbf6..5af518c2e 100644 --- a/layout/style/nsComputedDOMStyle.h +++ b/layout/style/nsComputedDOMStyle.h @@ -27,6 +27,7 @@ namespace mozilla { namespace dom { +class DocGroup; class Element; } // namespace dom struct ComputedGridTrackInfo; @@ -84,6 +85,11 @@ public: return mElement; } + virtual mozilla::dom::DocGroup* GetDocGroup() const override + { + return mElement ? mElement->GetDocGroup() : nullptr; + } + static already_AddRefed GetStyleContextForElement(mozilla::dom::Element* aElement, nsIAtom* aPseudo, nsIPresShell* aPresShell, -- cgit v1.2.3