| Index: third_party/WebKit/Source/core/dom/TreeScope.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/TreeScope.cpp b/third_party/WebKit/Source/core/dom/TreeScope.cpp
|
| index 63a4640bc9c3456fc78c83d46c4271e4ed0b41f6..7d14d246321df652dd8ea86a80b9bf49895dcc23 100644
|
| --- a/third_party/WebKit/Source/core/dom/TreeScope.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/TreeScope.cpp
|
| @@ -162,7 +162,7 @@ Node* TreeScope::ancestorInThisScope(Node* node) const
|
| if (!node->isInShadowTree())
|
| return nullptr;
|
|
|
| - node = node->shadowHost();
|
| + node = node->ownerShadowHost();
|
| }
|
|
|
| return nullptr;
|
| @@ -369,7 +369,7 @@ void TreeScope::adoptIfNeeded(Node& node)
|
|
|
| Element* TreeScope::retarget(const Element& target) const
|
| {
|
| - for (const Element* ancestor = ⌖ ancestor; ancestor = ancestor->shadowHost()) {
|
| + for (const Element* ancestor = ⌖ ancestor; ancestor = ancestor->ownerShadowHost()) {
|
| if (this == ancestor->treeScope())
|
| return const_cast<Element*>(ancestor);
|
| }
|
| @@ -409,7 +409,7 @@ Element* TreeScope::adjustedFocusedElement() const
|
| Element* TreeScope::adjustedElement(const Element& target) const
|
| {
|
| const Element* adjustedTarget = ⌖
|
| - for (const Element* ancestor = ⌖ ancestor; ancestor = ancestor->shadowHost()) {
|
| + for (const Element* ancestor = ⌖ ancestor; ancestor = ancestor->ownerShadowHost()) {
|
| // This adjustment is done only for V1 shadows, and is skipped for V0 or UA shadows,
|
| // because .pointerLockElement and .(webkit)fullscreenElement is not available for
|
| // non-V1 shadow roots.
|
|
|