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

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

Issue 2855843002: Reland "Sync requestFullscreen() and exitFullscreen() algorithms with the spec" (Closed)
Patch Set: Reland "Sync requestFullscreen() and exitFullscreen() algorithms with the spec" Created 3 years, 7 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
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 9b3b1c9265d311c50dace218d84bd43109089a82..02199352968729e6eb6513fd1d2b95460b36820e 100644
--- a/third_party/WebKit/Source/core/dom/Element.cpp
+++ b/third_party/WebKit/Source/core/dom/Element.cpp
@@ -1671,7 +1671,7 @@ void Element::RemovedFrom(ContainerNode* insertion_point) {
DCHECK(!HasRareData() || !GetElementRareData()->HasPseudoElements());
- if (Fullscreen::IsCurrentFullScreenElement(*this)) {
+ if (Fullscreen::IsFullscreenElement(*this)) {
SetContainsFullScreenElementOnAncestorsCrossingFrameBoundaries(false);
if (insertion_point->IsElementNode()) {
ToElement(insertion_point)->SetContainsFullScreenElement(false);
@@ -3637,7 +3637,7 @@ void Element::SetContainsPersistentVideo(bool value) {
// In some rare situations, when the persistent video has been removed from
// the tree, part of the tree might still carry the flag.
- if (!value && Fullscreen::IsCurrentFullScreenElement(*this)) {
+ if (!value && Fullscreen::IsFullscreenElement(*this)) {
for (Node* node = firstChild(); node;) {
if (!node->IsElementNode() ||
!ToElement(node)->ContainsPersistentVideo()) {
@@ -4276,7 +4276,7 @@ bool Element::SupportsStyleSharing() const {
return false;
if (HasAnimations())
return false;
- if (Fullscreen::IsCurrentFullScreenElement(*this))
+ if (Fullscreen::IsFullscreenElement(*this))
return false;
return true;
}
« no previous file with comments | « third_party/WebKit/Source/core/dom/DocumentFullscreen.idl ('k') | third_party/WebKit/Source/core/dom/Fullscreen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698