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

Unified Diff: third_party/WebKit/Source/core/html/HTMLVideoElement.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/html/HTMLVideoElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLVideoElement.cpp b/third_party/WebKit/Source/core/html/HTMLVideoElement.cpp
index 580cbebb21bbda358e342abc62af09586e6f734e..3bd027f0268851fb0a3fced62fdd8b225bd4a21f 100644
--- a/third_party/WebKit/Source/core/html/HTMLVideoElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLVideoElement.cpp
@@ -256,7 +256,7 @@ void HTMLVideoElement::OnBecamePersistentVideo(bool value) {
histogram.Count(kVideoPersistenceControlsTypeCustom);
Element* fullscreen_element =
- Fullscreen::CurrentFullScreenElementFrom(GetDocument());
+ Fullscreen::FullscreenElementFrom(GetDocument());
// Only set the video in persistent mode if it is not using native controls
// and is currently fullscreen.
if (!fullscreen_element || IsFullscreen())
@@ -280,7 +280,7 @@ void HTMLVideoElement::OnBecamePersistentVideo(bool value) {
PseudoStateChanged(CSSSelector::kPseudoVideoPersistent);
Element* fullscreen_element =
- Fullscreen::CurrentFullScreenElementFrom(GetDocument());
+ Fullscreen::FullscreenElementFrom(GetDocument());
// If the page is no longer fullscreen, the full tree will have to be
// traversed to make sure things are cleaned up.
for (Element* element = this; element && element != fullscreen_element;

Powered by Google App Engine
This is Rietveld 408576698