Changeset 140339 in webkit


Ignore:
Timestamp:
Jan 21, 2013 8:39:34 AM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[GTK] Volume button should not be shown for videos without audio
https://bugs.webkit.org/show_bug.cgi?id=106436

Patch by Halton Huo <halton.huo@intel.com> on 2013-01-21
Reviewed by Philippe Normand.

The volume control is no longer shown for videos with no audio.

No new tests, tested by media/video-no-audio.html.

  • platform/gtk/RenderThemeGtk.cpp:

(WebCore::RenderThemeGtk::hasOwnDisabledStateHandlingFor):
(WebCore):

  • platform/gtk/RenderThemeGtk.h:
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r140338 r140339  
     12013-01-21  Halton Huo  <halton.huo@intel.com>
     2
     3        [GTK] Volume button should not be shown for videos without audio
     4        https://bugs.webkit.org/show_bug.cgi?id=106436
     5
     6        Reviewed by Philippe Normand.
     7
     8        The volume control is no longer shown for videos with no audio.
     9
     10        No new tests, tested by media/video-no-audio.html.
     11
     12        * platform/gtk/RenderThemeGtk.cpp:
     13        (WebCore::RenderThemeGtk::hasOwnDisabledStateHandlingFor):
     14        (WebCore):
     15        * platform/gtk/RenderThemeGtk.h:
     16
    1172013-01-21  Dan Winship  <danw@gnome.org>
    218
  • trunk/Source/WebCore/platform/gtk/RenderThemeGtk.cpp

    r132112 r140339  
    514514}
    515515
     516bool RenderThemeGtk::hasOwnDisabledStateHandlingFor(ControlPart part) const
     517{
     518    return (part != MediaMuteButtonPart);
     519}
     520
    516521bool RenderThemeGtk::paintMediaFullscreenButton(RenderObject* renderObject, const PaintInfo& paintInfo, const IntRect& rect)
    517522{
  • trunk/Source/WebCore/platform/gtk/RenderThemeGtk.h

    r132112 r140339  
    163163    void initMediaButtons();
    164164    void adjustMediaSliderThumbSize(RenderStyle*) const;
    165     virtual bool hasOwnDisabledStateHandlingFor(ControlPart) const { return true; }
     165    virtual bool hasOwnDisabledStateHandlingFor(ControlPart) const;
    166166    virtual bool paintMediaFullscreenButton(RenderObject*, const PaintInfo&, const IntRect&);
    167167    virtual bool paintMediaPlayButton(RenderObject*, const PaintInfo&, const IntRect&);
Note: See TracChangeset for help on using the changeset viewer.