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

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

Issue 2573773002: Sync requestFullscreen() and exitFullscreen() algorithms with the spec (Closed)
Patch Set: Created 4 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
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 c92dcffd103bec5754e55a7dd01a4182b848899b..40a4a872463cae4421b94183e638ebce70f00e2f 100644
--- a/third_party/WebKit/Source/core/dom/Element.cpp
+++ b/third_party/WebKit/Source/core/dom/Element.cpp
@@ -1593,7 +1593,7 @@ void Element::removedFrom(ContainerNode* insertionPoint) {
DCHECK(!hasRareData() || !elementRareData()->hasPseudoElements());
- if (Fullscreen::isCurrentFullScreenElement(*this)) {
+ if (Fullscreen::isFullscreenElement(*this)) {
setContainsFullScreenElementOnAncestorsCrossingFrameBoundaries(false);
if (insertionPoint->isElementNode()) {
toElement(insertionPoint)->setContainsFullScreenElement(false);
@@ -4008,7 +4008,7 @@ bool Element::supportsStyleSharing() const {
return false;
if (hasAnimations())
return false;
- if (Fullscreen::isCurrentFullScreenElement(*this))
+ if (Fullscreen::isFullscreenElement(*this))
return false;
return true;
}

Powered by Google App Engine
This is Rietveld 408576698