| 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 778de8c35b26e1d3b9a18b4cebafb1de41965db5..56f2ac372f8d6d4c522ac91ddad70933705e95f9 100644
|
| --- a/third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp
|
| +++ b/third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp
|
| @@ -991,6 +991,9 @@ MediaControlCastButtonElement* MediaControlCastButtonElement::create(
|
| MediaControlCastButtonElement* button =
|
| new MediaControlCastButtonElement(mediaControls, isOverlayButton);
|
| button->ensureUserAgentShadowRoot();
|
| + button->setShadowPseudoId(isOverlayButton
|
| + ? "-internal-media-controls-overlay-cast-button"
|
| + : "-internal-media-controls-cast-button");
|
| button->setType(InputTypeNames::button);
|
| return button;
|
| }
|
| @@ -1017,14 +1020,6 @@ void MediaControlCastButtonElement::defaultEventHandler(Event* event) {
|
| MediaControlInputElement::defaultEventHandler(event);
|
| }
|
|
|
| -const AtomicString& MediaControlCastButtonElement::shadowPseudoId() const {
|
| - DEFINE_STATIC_LOCAL(AtomicString, id_nonOverlay,
|
| - ("-internal-media-controls-cast-button"));
|
| - DEFINE_STATIC_LOCAL(AtomicString, id_overlay,
|
| - ("-internal-media-controls-overlay-cast-button"));
|
| - return m_isOverlayButton ? id_overlay : id_nonOverlay;
|
| -}
|
| -
|
| void MediaControlCastButtonElement::setIsPlayingRemotely(
|
| bool isPlayingRemotely) {
|
| if (isPlayingRemotely) {
|
|
|