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

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

Issue 2657723002: [Blink, Media] Added controlsList to HTMLMediaElement (Closed)
Patch Set: Created 3 years, 11 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/MediaControlElements.cpp
diff --git a/third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp b/third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp
index b5a95e3f43509d32fd5744917377a56a92e13d7c..f2e314523bec67da36d5aa9ad60cfad4ccb7cb42 100644
--- a/third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp
+++ b/third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp
@@ -688,6 +688,9 @@ bool MediaControlDownloadButtonElement::shouldDisplayDownloadButton() {
if (HTMLMediaElement::isHLSURL(url))
return false;
+ if (mediaElement().controlsList()->tokens().contains("nodownload"))
+ return false;
+
return true;
}

Powered by Google App Engine
This is Rietveld 408576698