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

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

Issue 820633002: Reset mode on ancestors when a fullscreen node is removed. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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 | « LayoutTests/fullscreen/full-screen-remove-ancestor-after.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Element.cpp
diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp
index 95d6824d5e7e8884895744412924fe18f00ce21b..8c4e5ddabca31756571db8141a69c1e9e6509e88 100644
--- a/Source/core/dom/Element.cpp
+++ b/Source/core/dom/Element.cpp
@@ -1371,8 +1371,13 @@ void Element::removedFrom(ContainerNode* insertionPoint)
ASSERT(!hasRareData() || !elementRareData()->hasPseudoElements());
- if (containsFullScreenElement())
+ if (Fullscreen::isActiveFullScreenElement(*this)) {
setContainsFullScreenElementOnAncestorsCrossingFrameBoundaries(false);
+ if (insertionPoint->isElementNode()) {
+ toElement(insertionPoint)->setContainsFullScreenElement(false);
+ toElement(insertionPoint)->setContainsFullScreenElementOnAncestorsCrossingFrameBoundaries(false);
+ }
+ }
if (Fullscreen* fullscreen = Fullscreen::fromIfExists(document()))
fullscreen->elementRemoved(*this);
« no previous file with comments | « LayoutTests/fullscreen/full-screen-remove-ancestor-after.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698