diff options
author | Matt A. Tobin <email@mattatobin.com> | 2020-06-13 08:23:21 -0400 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2020-06-13 08:23:21 -0400 |
commit | 5e7917e2c8bd50754535652014c1de0054841912 (patch) | |
tree | ead6813f00c5ff538adad2b2aa8406732ffeb2b4 /dom/base/nsIContent.h | |
parent | 43725c7264ca3f63de348d1d1596ce1fe9e64d2d (diff) | |
download | uxp-5e7917e2c8bd50754535652014c1de0054841912.tar.gz |
Bug 1429656 - Implement ShadowRoot.activeElement
Tag #1375
Diffstat (limited to 'dom/base/nsIContent.h')
-rw-r--r-- | dom/base/nsIContent.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/dom/base/nsIContent.h b/dom/base/nsIContent.h index ce0a4e5960..101d5e931b 100644 --- a/dom/base/nsIContent.h +++ b/dom/base/nsIContent.h @@ -697,6 +697,14 @@ public: virtual mozilla::dom::ShadowRoot *GetContainingShadow() const = 0; /** + * Gets the shadow host if this content is in a shadow tree. That is, the host + * of |GetContainingShadow|, if its not null. + * + * @return The shadow host, if this is in shadow tree, or null. + */ + nsIContent* GetContainingShadowHost() const; + + /** * Gets the assigned slot associated with this content. * * @return The assigned slot element or null. |