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

Unified Diff: Source/core/html/HTMLVideoElement.cpp

Issue 13851023: Remove ChromeClient cruft (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Patch for landing Created 7 years, 8 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 | « Source/core/html/HTMLMediaElement.cpp ('k') | Source/core/loader/EmptyClients.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLVideoElement.cpp
diff --git a/Source/core/html/HTMLVideoElement.cpp b/Source/core/html/HTMLVideoElement.cpp
index 5909e33d29cc379d66ca3ff2f9b7b8c2ff216b0d..82b8a9c2d47e86abf015e226cd12e2da476b2e8d 100644
--- a/Source/core/html/HTMLVideoElement.cpp
+++ b/Source/core/html/HTMLVideoElement.cpp
@@ -130,15 +130,7 @@ bool HTMLVideoElement::supportsFullscreen() const
if (!player() || !player()->supportsFullscreen())
return false;
- // If the full screen API is enabled and is supported for the current element
- // do not require that the player has a video track to enter full screen.
- if (page->chrome()->client()->supportsFullScreenForElement(this, false))
- return true;
-
- if (!player()->hasVideo())
- return false;
-
- return page->chrome()->client()->supportsFullscreenForNode(this);
+ return true;
}
unsigned HTMLVideoElement::videoWidth() const
« no previous file with comments | « Source/core/html/HTMLMediaElement.cpp ('k') | Source/core/loader/EmptyClients.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698