Changeset 106374 in webkit
- Timestamp:
- Jan 31, 2012, 11:50:58 AM (15 years ago)
- Location:
- branches/subpixellayout/Source/WebCore/platform/qt
- Files:
-
- 2 edited
-
ScrollbarThemeQt.cpp (modified) (2 diffs)
-
ScrollbarThemeQt.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/subpixellayout/Source/WebCore/platform/qt/ScrollbarThemeQt.cpp
r105563 r106374 156 156 } 157 157 158 bool ScrollbarThemeQt::paint(Scrollbar* scrollbar, GraphicsContext* graphicsContext, const FixedRect& damageRect) 159 { 160 IntRect enclosingRect = enclosingIntRect(damageRect); 158 bool ScrollbarThemeQt::paint(Scrollbar* scrollbar, GraphicsContext* graphicsContext, const IntRect& damageRect) 159 { 161 160 if (graphicsContext->updatingControlTints()) { 162 scrollbar->invalidateRect( enclosingRect);161 scrollbar->invalidateRect(damageRect); 163 162 return false; 164 163 } … … 171 170 QStyleOptionSlider* opt = styleOptionSlider(scrollbar, p.widget); 172 171 173 p.painter->setClipRect(opt->rect.intersected( enclosingRect), Qt::IntersectClip);172 p.painter->setClipRect(opt->rect.intersected(damageRect), Qt::IntersectClip); 174 173 175 174 #ifdef Q_WS_MAC -
branches/subpixellayout/Source/WebCore/platform/qt/ScrollbarThemeQt.h
r98165 r106374 41 41 virtual ~ScrollbarThemeQt(); 42 42 43 virtual bool paint(Scrollbar*, GraphicsContext*, const FixedRect& damageRect);43 virtual bool paint(Scrollbar*, GraphicsContext*, const IntRect& damageRect); 44 44 virtual void paintScrollCorner(ScrollView*, GraphicsContext*, const IntRect& cornerRect); 45 45
Note:
See TracChangeset
for help on using the changeset viewer.