summaryrefslogtreecommitdiffstats
path: root/dom/base/DocumentOrShadowRoot.h
diff options
context:
space:
mode:
Diffstat (limited to 'dom/base/DocumentOrShadowRoot.h')
-rw-r--r--dom/base/DocumentOrShadowRoot.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/dom/base/DocumentOrShadowRoot.h b/dom/base/DocumentOrShadowRoot.h
index 59be0c2a9..2092cd54f 100644
--- a/dom/base/DocumentOrShadowRoot.h
+++ b/dom/base/DocumentOrShadowRoot.h
@@ -116,6 +116,15 @@ public:
~DocumentOrShadowRoot() = default;
protected:
+ nsIContent* Retarget(nsIContent* aContent) const;
+
+ /**
+ * If focused element's subtree root is this document or shadow root, return
+ * focused element, otherwise, get the shadow host recursively until the
+ * shadow host's subtree root is this document or shadow root.
+ */
+ Element* GetRetargetedFocusedElement();
+
nsTArray<RefPtr<mozilla::StyleSheet>> mStyleSheets;
RefPtr<mozilla::dom::StyleSheetList> mDOMStyleSheets;