Have to invalidate the mute button when changing the volume
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 11 Jun 2013 21:59:12 +0000 (21:59 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 11 Jun 2013 21:59:12 +0000 (21:59 +0000)
https://bugs.webkit.org/show_bug.cgi?id=117464

Reviewed by Darin Adler.

Merge https://chromium.googlesource.com/chromium/blink/+/c4c685c82908449526fd8c251cc551e729ebed08
but without a test since the test doesn't work in WebKit.

* html/shadow/MediaControls.cpp:
(WebCore::MediaControls::changedVolume):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@151476 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/html/shadow/MediaControls.cpp

index c361961..3b68e89 100644 (file)
@@ -1,3 +1,16 @@
+2013-06-11  Ryosuke Niwa  <rniwa@webkit.org>
+
+        Have to invalidate the mute button when changing the volume
+        https://bugs.webkit.org/show_bug.cgi?id=117464
+
+        Reviewed by Darin Adler.
+
+        Merge https://chromium.googlesource.com/chromium/blink/+/c4c685c82908449526fd8c251cc551e729ebed08
+        but without a test since the test doesn't work in WebKit.
+
+        * html/shadow/MediaControls.cpp:
+        (WebCore::MediaControls::changedVolume):
+
 2013-06-11  Max Vujovic  <mvujovic@adobe.com>
 
         [CSS Regions] Regions don't create a stacking context for their contents
index 46b879e..e3c99f7 100644 (file)
@@ -241,6 +241,8 @@ void MediaControls::changedVolume()
 {
     if (m_volumeSlider)
         m_volumeSlider->setVolume(m_mediaController->volume());
+    if (m_panelMuteButton && m_panelMuteButton->renderer())
+        m_panelMuteButton->renderer()->repaint();
 }
 
 void MediaControls::changedClosedCaptionsVisibility()