painter to make the styler draw all subcontrols, and in this case the focus
rect, in the proper location
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23984
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2007-07-04 Qing Zhao <qing@staikos.net>
+
+ Reviewed by George Staikos.
+
+ 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
+
+ * platform/qt/RenderThemeQt.cpp:
+ (WebCore::RenderThemeQt::paintMenuList):
+
2007-07-04 Mitz Pettel <mitz@webkit.org>
Reviewed by Maciej.
return true;
QStyleOptionComboBox opt;
+ EAppearance appearance = applyTheme(opt, o);
opt.initFrom(widget);
- opt.rect = r;
+ const QPoint topLeft = r.topLeft();
+ painter->translate(topLeft);
+ opt.rect.moveTo(QPoint(0,0));
+ opt.rect.setSize(r.size());
+
opt.frame = false;
style->drawComplexControl(QStyle::CC_ComboBox, &opt, painter, widget);
+ painter->translate(-topLeft);
return false;
}