Changeset 83437 in webkit


Ignore:
Timestamp:
Apr 11, 2011 6:37:54 AM (13 years ago)
Author:
alexis.menard@openbossa.org
Message:

2011-04-11 Alexis Menard <alexis.menard@openbossa.org>

Reviewed by Andreas Kling.

[Qt] Regression : r83051 Oxygen's lineedits are not rendered properly
https://bugs.webkit.org/show_bug.cgi?id=58076

State_Sunken is more generic than pressed. It is used by items such as frames or
line edits because they are "sunken" frames (e.g. QLineEdit). It can be required
by some style like Oxygen. Therefore only in the mobile theme we check if the object
is pressed.

  • platform/qt/RenderThemeQt.cpp: (WebCore::RenderThemeQt::paintTextField):
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r83435 r83437  
     12011-04-11  Alexis Menard  <alexis.menard@openbossa.org>
     2
     3        Reviewed by Andreas Kling.
     4
     5        [Qt] Regression : r83051 Oxygen's lineedits are not rendered properly
     6        https://bugs.webkit.org/show_bug.cgi?id=58076
     7
     8        State_Sunken is more generic than pressed. It is used by items such as frames or
     9        line edits because they are "sunken" frames (e.g. QLineEdit). It can be required
     10        by some style like Oxygen. Therefore only in the mobile theme we check if the object
     11        is pressed.
     12
     13        * platform/qt/RenderThemeQt.cpp:
     14        (WebCore::RenderThemeQt::paintTextField):
     15
    1162011-04-11  Pavel Feldman  <pfeldman@chromium.org>
    217
  • trunk/Source/WebCore/platform/qt/RenderThemeQt.cpp

    r83051 r83437  
    674674    panel.rect = r;
    675675    panel.lineWidth = findFrameLineWidth(qStyle());
     676#if USE(QT_MOBILE_THEME)
    676677    if (isPressed(o))
    677678        panel.state |= QStyle::State_Sunken;
     679#else
     680    panel.state |= QStyle::State_Sunken;
     681#endif
    678682    panel.features = QStyleOptionFrameV2::None;
    679683
Note: See TracChangeset for help on using the changeset viewer.