diff options
author | Moonchild <moonchild@palemoon.org> | 2020-06-14 10:01:06 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-14 10:01:06 +0000 |
commit | 7cc007d9bf8927fc4ce1d5ea80a843d6edfc17dd (patch) | |
tree | 7b3ba52faca3704faf53d8248cbe130a32481b21 /dom/base/nsIContent.h | |
parent | 59a5adc93415f6d6e8ce4352ba0cd2d34d5e7888 (diff) | |
parent | bbd59105da97200947ae62b2dc949a1130a40d75 (diff) | |
download | UXP-7cc007d9bf8927fc4ce1d5ea80a843d6edfc17dd.tar UXP-7cc007d9bf8927fc4ce1d5ea80a843d6edfc17dd.tar.gz UXP-7cc007d9bf8927fc4ce1d5ea80a843d6edfc17dd.tar.lz UXP-7cc007d9bf8927fc4ce1d5ea80a843d6edfc17dd.tar.xz UXP-7cc007d9bf8927fc4ce1d5ea80a843d6edfc17dd.zip |
Merge pull request #1591 from MoonchildProductions/sr.activeElement-work
Implement ShadowRoot.activeElement
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. |