| 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 fb2ba808b243a56342dd927adf0f757ffd12a665..8c4808214bb7c454332013dca90f7f14dc3484b1 100644
|
| --- a/third_party/WebKit/Source/core/html/shadow/MediaControls.cpp
|
| +++ b/third_party/WebKit/Source/core/html/shadow/MediaControls.cpp
|
| @@ -235,7 +235,7 @@ void MediaControls::initializeControls()
|
| m_fullscreenButton = fullscreenButton;
|
| panel->appendChild(fullscreenButton);
|
|
|
| - MediaControlDownloadButtonElement* downloadButton = MediaControlDownloadButtonElement::create(*this, &document());
|
| + MediaControlDownloadButtonElement* downloadButton = MediaControlDownloadButtonElement::create(*this);
|
| m_downloadButton = downloadButton;
|
| panel->appendChild(downloadButton);
|
|
|
| @@ -263,7 +263,7 @@ void MediaControls::initializeControls()
|
| m_overflowList->appendChild(m_toggleClosedCaptionsButton->createOverflowElement(*this, MediaControlToggleClosedCaptionsButtonElement::create(*this)));
|
| m_overflowList->appendChild(m_fullscreenButton->createOverflowElement(*this, MediaControlFullscreenButtonElement::create(*this)));
|
| m_overflowList->appendChild(m_playButton->createOverflowElement(*this, MediaControlPlayButtonElement::create(*this)));
|
| - m_overflowList->appendChild(m_downloadButton->createOverflowElement(*this, MediaControlDownloadButtonElement::create(*this, &document())));
|
| + m_overflowList->appendChild(m_downloadButton->createOverflowElement(*this, MediaControlDownloadButtonElement::create(*this)));
|
| }
|
|
|
| void MediaControls::reset()
|
| @@ -307,8 +307,7 @@ void MediaControls::reset()
|
|
|
| refreshCastButtonVisibilityWithoutUpdate();
|
|
|
| - if (RuntimeEnabledFeatures::mediaControlsDownloadButtonEnabled())
|
| - m_downloadButton->setIsWanted(m_downloadButton->shouldDisplayDownloadButton());
|
| + m_downloadButton->setIsWanted(m_downloadButton->shouldDisplayDownloadButton());
|
| }
|
|
|
| LayoutObject* MediaControls::layoutObjectForTextTrackLayout()
|
|
|