Commit 72d9e8f4 authored by Fergal Daly's avatar Fergal Daly Committed by Commit Bot

DOM: Add method doc on Element::GetShadowRoot

This is trivial but it's unclear to someone unfamiliar with the code
whether this is going to get the attached root or the containing root
(and that method is 2 layers of inheritance away in Node.h).

Change-Id: I804664d12e2a245db5eff5b5dc7b77a15b995dc0
Reviewed-on: https://chromium-review.googlesource.com/1009302Reviewed-by: default avatarHayato Ito <hayato@chromium.org>
Commit-Queue: Fergal Daly <fergal@chromium.org>
Cr-Commit-Position: refs/heads/master@{#550082}
parent 183f54d2
......@@ -497,6 +497,7 @@ class CORE_EXPORT Element : public ContainerNode {
ShadowRoot& AttachShadowRootInternal(ShadowRootType,
bool delegates_focus = false);
// Returns the shadow root attached to this element if it is a shadow host.
ShadowRoot* GetShadowRoot() const;
ShadowRoot* OpenShadowRoot() const;
ShadowRoot* ClosedShadowRoot() const;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment