summaryrefslogtreecommitdiffstats
path: root/dom/base/nsDOMAttributeMap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dom/base/nsDOMAttributeMap.cpp')
-rw-r--r--dom/base/nsDOMAttributeMap.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/dom/base/nsDOMAttributeMap.cpp b/dom/base/nsDOMAttributeMap.cpp
index 2a90df7e4..29a4a6349 100644
--- a/dom/base/nsDOMAttributeMap.cpp
+++ b/dom/base/nsDOMAttributeMap.cpp
@@ -524,3 +524,9 @@ nsDOMAttributeMap::WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto)
{
return NamedNodeMapBinding::Wrap(aCx, this, aGivenProto);
}
+
+DocGroup*
+nsDOMAttributeMap::GetDocGroup() const
+{
+ return mContent ? mContent->OwnerDoc()->GetDocGroup() : nullptr;
+}