Commit d4c93624 authored by calvaris@igalia.com's avatar calvaris@igalia.com
Browse files

[GTK] Volume slider shows incorrect track when muted

https://bugs.webkit.org/show_bug.cgi?id=120253

Reviewed by Philippe Normand.

When painting the volume bar, consider that it could be muted even
then volume is different than zero.

* platform/gtk/RenderThemeGtk.cpp:
(WebCore::RenderThemeGtk::paintMediaVolumeSliderTrack): Asign
painted volume as 0 when media is muted.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154666 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 5fec8e3d
2013-08-27 Xabier Rodriguez Calvar <calvaris@igalia.com>
[GTK] Volume slider shows incorrect track when muted
https://bugs.webkit.org/show_bug.cgi?id=120253
Reviewed by Philippe Normand.
When painting the volume bar, consider that it could be muted even
then volume is different than zero.
* platform/gtk/RenderThemeGtk.cpp:
(WebCore::RenderThemeGtk::paintMediaVolumeSliderTrack): Asign
painted volume as 0 when media is muted.
2013-08-26 Sam Weinig <sam@webkit.org>
 
EditorInternalCommand should use Frame& where possible
......@@ -604,7 +604,7 @@ bool RenderThemeGtk::paintMediaVolumeSliderTrack(RenderObject* renderObject, con
if (!mediaElement)
return true;
float volume = mediaElement->volume();
float volume = mediaElement->muted() ? 0.0f : mediaElement->volume();
if (!volume)
return true;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment