Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(161)

Unified Diff: third_party/WebKit/Source/core/dom/Element.cpp

Issue 2287353002: Cross shadow DOM boundaries for :-webkit-full-screen-ancestor (Closed)
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/fullscreen/full-screen-ancestor-shadow.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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())
« no previous file with comments | « third_party/WebKit/LayoutTests/fullscreen/full-screen-ancestor-shadow.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698