Bug 1429656 - Implement ShadowRoot.activeElement

Tag #1375
This commit is contained in:
Matt A. Tobin 2020-06-13 08:23:21 -04:00 committed by Roy Tam
commit 693a79ca08
14 changed files with 88 additions and 72 deletions

View file

@ -696,6 +696,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.
*