Changeset 37377
- Timestamp:
- 10/07/08 09:30:40 (7 weeks ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 modified
-
ChangeLog (modified) (1 diff)
-
platform/qt/ScrollbarThemeQt.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r37374 r37377 1 2008-10-07 Tor Arne VestbÞ <tavestbo@trolltech.com> 2 3 Reviewed by Simon. 4 5 Don't attempt to paint when updating control tints 6 7 We don't have a valid PlatformGraphicsContext so schedule 8 the dirty scrollbar/scrollview area for repaint instead. 9 10 * platform/qt/ScrollbarThemeQt.cpp: 11 (WebCore::ScrollbarThemeQt::paint): 12 (WebCore::ScrollbarThemeQt::paintScrollCorner): 13 1 14 2008-10-07 Holger Hans Peter Freyther <zecke@selfish.org> 2 15 -
trunk/WebCore/platform/qt/ScrollbarThemeQt.cpp
r37168 r37377 32 32 #include "PlatformMouseEvent.h" 33 33 #include "Scrollbar.h" 34 #include "ScrollView.h" 34 35 35 36 #include <QApplication> … … 126 127 bool ScrollbarThemeQt::paint(Scrollbar* scrollbar, GraphicsContext* graphicsContext, const IntRect& damageRect) 127 128 { 129 if (graphicsContext->updatingControlTints()) { 130 scrollbar->invalidateRect(damageRect); 131 return false; 132 } 133 128 134 QStyleOptionSlider* opt = styleOptionSlider(scrollbar); 129 135 QRect clip = opt->rect.intersected(damageRect); … … 211 217 } 212 218 213 void ScrollbarThemeQt::paintScrollCorner(ScrollView*, GraphicsContext* context, const IntRect& rect) 214 { 219 void ScrollbarThemeQt::paintScrollCorner(ScrollView* scrollView, GraphicsContext* context, const IntRect& rect) 220 { 221 if (context->updatingControlTints()) { 222 scrollView->invalidateRect(rect); 223 return; 224 } 225 215 226 #if QT_VERSION < 0x040500 216 227 context->fillRect(rect, QApplication::palette().color(QPalette::Normal, QPalette::Window));