⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 106374 in webkit


Ignore:
Timestamp:
Jan 31, 2012, 11:50:58 AM (15 years ago)
Author:
eae@chromium.org
Message:

Fix scrollbar painting on qt (again).

Location:
branches/subpixellayout/Source/WebCore/platform/qt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/subpixellayout/Source/WebCore/platform/qt/ScrollbarThemeQt.cpp

    r105563 r106374  
    156156}
    157157
    158 bool ScrollbarThemeQt::paint(Scrollbar* scrollbar, GraphicsContext* graphicsContext, const FixedRect& damageRect)
    159 {
    160     IntRect enclosingRect = enclosingIntRect(damageRect);
     158bool ScrollbarThemeQt::paint(Scrollbar* scrollbar, GraphicsContext* graphicsContext, const IntRect& damageRect)
     159{
    161160    if (graphicsContext->updatingControlTints()) {
    162        scrollbar->invalidateRect(enclosingRect);
     161       scrollbar->invalidateRect(damageRect);
    163162       return false;
    164163    }
     
    171170    QStyleOptionSlider* opt = styleOptionSlider(scrollbar, p.widget);
    172171
    173     p.painter->setClipRect(opt->rect.intersected(enclosingRect), Qt::IntersectClip);
     172    p.painter->setClipRect(opt->rect.intersected(damageRect), Qt::IntersectClip);
    174173
    175174#ifdef Q_WS_MAC
  • branches/subpixellayout/Source/WebCore/platform/qt/ScrollbarThemeQt.h

    r98165 r106374  
    4141    virtual ~ScrollbarThemeQt();
    4242
    43     virtual bool paint(Scrollbar*, GraphicsContext*, const FixedRect& damageRect);
     43    virtual bool paint(Scrollbar*, GraphicsContext*, const IntRect& damageRect);
    4444    virtual void paintScrollCorner(ScrollView*, GraphicsContext*, const IntRect& cornerRect);
    4545
Note: See TracChangeset for help on using the changeset viewer.