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/nsDOMTokenList.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'dom/base/nsDOMTokenList.cpp') diff --git a/dom/base/nsDOMTokenList.cpp b/dom/base/nsDOMTokenList.cpp index 39ff60e12..961beb50e 100644 --- a/dom/base/nsDOMTokenList.cpp +++ b/dom/base/nsDOMTokenList.cpp @@ -366,6 +366,12 @@ nsDOMTokenList::Stringify(nsAString& aResult) mElement->GetAttr(kNameSpaceID_None, mAttrAtom, aResult); } +DocGroup* +nsDOMTokenList::GetDocGroup() const +{ + return mElement ? mElement->OwnerDoc()->GetDocGroup() : nullptr; +} + JSObject* nsDOMTokenList::WrapObject(JSContext *cx, JS::Handle aGivenProto) { -- cgit v1.2.3