Index: Source/core/html/HTMLMediaElement.cpp |
diff --git a/Source/core/html/HTMLMediaElement.cpp b/Source/core/html/HTMLMediaElement.cpp |
index 7f980b63dbf0229bebba1107adba9039a74c6844..e16c405e041434482e20c23726c09ecff50c8d7b 100644 |
--- a/Source/core/html/HTMLMediaElement.cpp |
+++ b/Source/core/html/HTMLMediaElement.cpp |
@@ -3055,7 +3055,7 @@ void HTMLMediaElement::clearMediaPlayer(int flags) |
m_remoteRoutesAvailable = false; |
m_playingRemotely = false; |
if (mediaControls()) |
- mediaControls()->refreshCastButtonVisibility(); |
+ mediaControls()->refreshCastButtonVisibilityWithoutUpdate(); |
if (m_textTracks) |
configureTextTrackDisplay(AssumeNoVisibleChange); |
@@ -3587,6 +3587,12 @@ bool HTMLMediaElement::isBlockedOnMediaController() const |
return false; |
} |
+void HTMLMediaElement::setAllowHiddenAudioElements(bool allow) |
+{ |
+ ensureMediaControls(); |
+ mediaControls()->setAllowHiddenAudioElements(allow); |
+} |
+ |
WebMediaPlayer::CORSMode HTMLMediaElement::corsMode() const |
{ |
const AtomicString& crossOriginMode = fastGetAttribute(crossoriginAttr); |