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

Unified Diff: Source/core/html/shadow/MediaControls.cpp

Issue 296743007: Prevent media controls from auto-hiding on audio-only content. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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: Source/core/html/shadow/MediaControls.cpp
diff --git a/Source/core/html/shadow/MediaControls.cpp b/Source/core/html/shadow/MediaControls.cpp
index 1b1a234275e528d7ea759827b70eb757ce30ff7e..da85c339edcb67a3f936b61aa38a542b4bd2217f 100644
--- a/Source/core/html/shadow/MediaControls.cpp
+++ b/Source/core/html/shadow/MediaControls.cpp
@@ -209,7 +209,7 @@ void MediaControls::makeTransparent()
bool MediaControls::shouldHideMediaControls()
{
- return !m_panel->hovered();
+ return !m_panel->hovered() && mediaElement().hasVideo();
}
void MediaControls::playbackStarted()

Powered by Google App Engine
This is Rietveld 408576698