Index: Source/core/html/shadow/MediaControlElements.cpp |
diff --git a/Source/core/html/shadow/MediaControlElements.cpp b/Source/core/html/shadow/MediaControlElements.cpp |
index 3bec1c9f638747f1230b65f128a49036c57b2fb3..92e1a517ba4b876056361e65061c08d3ef569407 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(); |