Changeset 37585
- Timestamp:
- 10/14/08 05:50:51 (17 months 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
r37583 r37585 1 2008-10-14 Tor Arne Vestbø <tavestbo@trolltech.com> 2 3 Reviewed by Simon. 4 5 Fix QtWebKit scrollbar painting errors 6 7 * platform/qt/ScrollbarThemeQt.cpp: 8 (WebCore::ScrollbarThemeQt::paint): 9 (WebCore::ScrollbarThemeQt::paintScrollCorner): 10 1 11 2008-10-14 Tor Arne Vestbø <tavestbo@trolltech.com> 2 12 -
trunk/WebCore/platform/qt/ScrollbarThemeQt.cpp
r37583 r37585 139 139 return true; 140 140 141 p.painter->save(); 141 142 QStyleOptionSlider* opt = styleOptionSlider(scrollbar); 142 143 p.painter->setClipRect(opt->rect.intersected(damageRect)); … … 155 156 opt->rect.moveTo(topLeft); 156 157 #endif 158 p.painter->restore(); 157 159 158 160 return true; … … 229 231 context->fillRect(rect, QApplication::palette().color(QPalette::Normal, QPalette::Window)); 230 232 #else 233 StylePainter p(context); 234 if (!p.isValid()) 235 return; 236 231 237 QStyleOption option; 232 238 option.rect = rect; 233 QApplication::style()->drawPrimitive(QStyle::PE_PanelScrollAreaCorner, 234 &option, context->platformContext(), 0); 239 p.drawPrimitive(QStyle::PE_PanelScrollAreaCorner, option); 235 240 #endif 236 241 }