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

Unified Diff: third_party/WebKit/Source/core/paint/MediaControlsPainter.cpp

Issue 2982573002: A video tag should not highlight the play button and slider thumb when preload is disabled and not …
Patch Set: Created 3 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/paint/MediaControlsPainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/MediaControlsPainter.cpp b/third_party/WebKit/Source/core/paint/MediaControlsPainter.cpp
index f1a2d5ce2ceafd71460f4f975ff2ca9e0beea736..4566b16e2d3b78acc6589f54e995f85d4600f260 100644
--- a/third_party/WebKit/Source/core/paint/MediaControlsPainter.cpp
+++ b/third_party/WebKit/Source/core/paint/MediaControlsPainter.cpp
@@ -74,7 +74,9 @@ static Image* PlatformResource(const char* name) {
static bool HasSource(const HTMLMediaElement* media_element) {
return media_element->getNetworkState() != HTMLMediaElement::kNetworkEmpty &&
- media_element->getNetworkState() != HTMLMediaElement::kNetworkNoSource;
+ media_element->getNetworkState() !=
+ HTMLMediaElement::kNetworkNoSource &&
+ media_element->getNetworkState() != HTMLMediaElement::kNetworkIdle;
}
static FloatRect AdjustRectForPadding(IntRect rect,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698