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

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

Issue 363563007: Only show overlay play button when controls are enabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@shouldShowControls
Patch Set: Extended test coverage Created 6 years, 6 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/shadow/MediaControlElements.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/shadow/MediaControls.cpp
diff --git a/Source/core/html/shadow/MediaControls.cpp b/Source/core/html/shadow/MediaControls.cpp
index 7b12c742023a5db0ac26e358ca0405bc481ed7be..ca17d00f3ffa979a749a500801c230392ceffd35 100644
--- a/Source/core/html/shadow/MediaControls.cpp
+++ b/Source/core/html/shadow/MediaControls.cpp
@@ -191,6 +191,8 @@ void MediaControls::show()
makeOpaque();
m_panel->setIsDisplayed(true);
m_panel->show();
+ if (m_overlayPlayButton)
+ m_overlayPlayButton->updateDisplayType();
}
void MediaControls::mediaElementFocused()
@@ -203,6 +205,8 @@ void MediaControls::hide()
{
m_panel->setIsDisplayed(false);
m_panel->hide();
+ if (m_overlayPlayButton)
+ m_overlayPlayButton->hide();
}
void MediaControls::makeOpaque()
« no previous file with comments | « Source/core/html/shadow/MediaControlElements.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698