summaryrefslogtreecommitdiffstats
path: root/dom/base/ShadowRoot.h
diff options
context:
space:
mode:
Diffstat (limited to 'dom/base/ShadowRoot.h')
-rw-r--r--dom/base/ShadowRoot.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/dom/base/ShadowRoot.h b/dom/base/ShadowRoot.h
index f061735e2..4a5b54e85 100644
--- a/dom/base/ShadowRoot.h
+++ b/dom/base/ShadowRoot.h
@@ -51,6 +51,11 @@ public:
{
return mMode;
}
+ bool IsClosed()
+ {
+ return mMode == ShadowRootMode::Closed;
+ }
+
// [deprecated] Shadow DOM v0
void AddToIdTable(Element* aElement, nsIAtom* aId);