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

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

Issue 2728193003: Show download button even when preload=none (Closed)
Patch Set: mlamouri feedback Created 3 years, 9 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 be254c189d6f550806ce1b75e1f249092ae3b1e8..21cea2dee9930a09636a566424bfddf015f5bc85 100644
--- a/third_party/WebKit/Source/core/html/shadow/MediaControls.cpp
+++ b/third_party/WebKit/Source/core/html/shadow/MediaControls.cpp
@@ -961,6 +961,11 @@ void MediaControls::networkStateChanged() {
invalidate(m_downloadButton);
invalidate(m_timeline);
invalidate(m_volumeSlider);
+
+ // Update the display state of the download button in case we now have a
+ // source or no longer have a source.
+ m_downloadButton->setIsWanted(
+ m_downloadButton->shouldDisplayDownloadButton());
}
bool MediaControls::overflowMenuVisible() {

Powered by Google App Engine
This is Rietveld 408576698