| Index: third_party/WebKit/Source/core/dom/Element.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/Element.cpp b/third_party/WebKit/Source/core/dom/Element.cpp
|
| index c9610670acf3a4a4b8a2f6456b9c27bb36e8a8d1..1e9ac996a103133d46428a7536e41ccbf27841a7 100644
|
| --- a/third_party/WebKit/Source/core/dom/Element.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Element.cpp
|
| @@ -3137,12 +3137,12 @@ void Element::setContainsFullScreenElement(bool flag)
|
| pseudoStateChanged(CSSSelector::PseudoFullScreenAncestor);
|
| }
|
|
|
| -// Unlike Node::parentNode, this can cross frame boundaries.
|
| +// Unlike Node::parentOrShadowHostElement, this can cross frame boundaries.
|
| static Element* nextAncestorElement(Element* element)
|
| {
|
| DCHECK(element);
|
| - if (element->parentElement())
|
| - return element->parentElement();
|
| + if (element->parentOrShadowHostElement())
|
| + return element->parentOrShadowHostElement();
|
|
|
| Frame* frame = element->document().frame();
|
| if (!frame || !frame->owner())
|
|
|