diff options
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 ce0a4e596..101d5e931 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. |