Changeset 23984 in webkit


Ignore:
Timestamp:
Jul 4, 2007 8:15:15 AM (17 years ago)
Author:
staikos
Message:

Patch from Qing Zhao: Similar to the PlatformScrollbar fixes, adjust the
painter to make the styler draw all subcontrols, and in this case the focus
rect, in the proper location

Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r23983 r23984  
     12007-07-04  Qing Zhao  <qing@staikos.net>
     2
     3        Reviewed by George Staikos.
     4
     5        Similar to the PlatformScrollbar fixes, adjust the painter to make the
     6        styler draw all subcontrols, and in this case the focus rect, in the
     7        proper location
     8
     9        * platform/qt/RenderThemeQt.cpp:
     10        (WebCore::RenderThemeQt::paintMenuList):
     11
    1122007-07-04  Mitz Pettel  <mitz@webkit.org>
    213
  • trunk/WebCore/platform/qt/RenderThemeQt.cpp

    r23945 r23984  
    307307
    308308    QStyleOptionComboBox opt;
     309    EAppearance appearance = applyTheme(opt, o);
    309310    opt.initFrom(widget);
    310     opt.rect = r;
     311    const QPoint topLeft = r.topLeft();
     312    painter->translate(topLeft);
     313    opt.rect.moveTo(QPoint(0,0));
     314    opt.rect.setSize(r.size());
     315
    311316    opt.frame = false;
    312317
    313318    style->drawComplexControl(QStyle::CC_ComboBox, &opt, painter, widget);
     319    painter->translate(-topLeft);
    314320    return false;
    315321}
Note: See TracChangeset for help on using the changeset viewer.