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

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

Issue 2728193003: Show download button even when preload=none (Closed)
Patch Set: Created 3 years, 10 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: third_party/WebKit/Source/core/html/shadow/MediaControls.cpp
diff --git a/third_party/WebKit/Source/core/html/shadow/MediaControls.cpp b/third_party/WebKit/Source/core/html/shadow/MediaControls.cpp
index 087b1013c313014963936a4221c8eedf8a6e6212..2b29ad14fbdbab1ff662a37b67dc86737fdae2c2 100644
--- a/third_party/WebKit/Source/core/html/shadow/MediaControls.cpp
+++ b/third_party/WebKit/Source/core/html/shadow/MediaControls.cpp
@@ -954,6 +954,8 @@ void MediaControls::networkStateChanged() {
invalidate(m_downloadButton);
invalidate(m_timeline);
invalidate(m_volumeSlider);
+
+ reset();
mlamouri (slow - plz ping) 2017/03/04 14:10:01 `reset()` is a nuclear weapon. We don't want to re
steimel 2017/03/06 17:44:12 Changed to just directly update the download butto
}
bool MediaControls::overflowMenuVisible() {

Powered by Google App Engine
This is Rietveld 408576698