diff options
Diffstat (limited to 'dom/base/Element.h')
-rw-r--r-- | dom/base/Element.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/dom/base/Element.h b/dom/base/Element.h index 88f416be7..6169fbdab 100644 --- a/dom/base/Element.h +++ b/dom/base/Element.h @@ -471,6 +471,9 @@ protected: mState &= ~aStates; } + already_AddRefed<ShadowRoot> AttachShadowInternal(bool aClosed, + ErrorResult& aError); + private: // Need to allow the ESM, nsGlobalWindow, and the focus manager to // set our state @@ -921,6 +924,13 @@ public: already_AddRefed<DOMRectList> GetClientRects(); already_AddRefed<DOMRect> GetBoundingClientRect(); + // Shadow DOM v1 + already_AddRefed<ShadowRoot> AttachShadow(const ShadowRootInit& aInit, + ErrorResult& aError); + void SetSlot(const nsAString& aName, ErrorResult& aError); + void GetSlot(nsAString& aName); + + // [deprecated] Shadow DOM v0 already_AddRefed<ShadowRoot> CreateShadowRoot(ErrorResult& aError); already_AddRefed<DestinationInsertionPointList> GetDestinationInsertionPoints(); |