Index: Source/core/html/shadow/MediaControlElements.cpp |
diff --git a/Source/core/html/shadow/MediaControlElements.cpp b/Source/core/html/shadow/MediaControlElements.cpp |
index ace36c0e693a9656d29c098c85d337f4e7aa6c9b..c463fc10e58d1acd3829e886494907fbb0216bb2 100644 |
--- a/Source/core/html/shadow/MediaControlElements.cpp |
+++ b/Source/core/html/shadow/MediaControlElements.cpp |
@@ -283,7 +283,7 @@ void MediaControlOverlayPlayButtonElement::defaultEventHandler(Event* event) |
void MediaControlOverlayPlayButtonElement::updateDisplayType() |
{ |
- if (mediaElement().togglePlayStateWillPlay()) { |
+ if (mediaElement().shouldShowControls() && mediaElement().togglePlayStateWillPlay()) { |
show(); |
} else |
hide(); |