Changeset 58672 in webkit


Ignore:
Timestamp:
May 3, 2010 7:10:11 AM (14 years ago)
Author:
vestbo@webkit.org
Message:

[Qt] Fix rendering of <button> elements on Mac OS X

Reviewed by Simon Hausmann.

The <button> element has ButtonPart appearance, not PushButton part,
so we have to include ButtonPart when we decide if we should draw the
button as raised on Mac OS X.

Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r58671 r58672  
     12010-05-03  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
     2
     3        Reviewed by Simon Hausmann.
     4
     5        [Qt] Fix rendering of <button> elements on Mac OS X
     6
     7        The <button> element has ButtonPart appearance, not PushButton part,
     8        so we have to include ButtonPart when we decide if we should draw the
     9        button as raised on Mac OS X.
     10
     11        https://bugs.webkit.org/show_bug.cgi?id=38458
     12
     13        * platform/qt/RenderThemeQt.cpp:
     14        (WebCore::RenderThemeQt::initializeCommonQStyleOptions):
     15
    1162010-04-30  Philippe Normand  <pnormand@igalia.com>
    217
  • trunk/WebCore/platform/qt/RenderThemeQt.cpp

    r58659 r58672  
    969969        if (isPressed(o))
    970970            option.state |= QStyle::State_Sunken;
    971         else if (result == PushButtonPart)
     971        else if (result == PushButtonPart || result == ButtonPart)
    972972            option.state |= QStyle::State_Raised;
    973973        break;
Note: See TracChangeset for help on using the changeset viewer.