diff options
Diffstat (limited to 'dom/base/DocumentOrShadowRoot.h')
-rw-r--r-- | dom/base/DocumentOrShadowRoot.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/dom/base/DocumentOrShadowRoot.h b/dom/base/DocumentOrShadowRoot.h index 59be0c2a9b..2092cd54f2 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; |