Changeset 154270 in webkit
- Timestamp:
- Aug 19, 2013 3:19:14 AM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r154269 r154270 1 2013-08-19 Allan Sandfeld Jensen <allan.jensen@digia.com> 2 3 [Qt] QtWebKit (using the Arora browser) displays the border radii (radius) of a button very ugly 4 https://bugs.webkit.org/show_bug.cgi?id=28113 5 6 Reviewed by Jocelyn Turcotte. 7 8 StylePainter::init() was called twice making it clobber the previous antialiasing setting. 9 10 This patch cleans up the construction so we only have one constructor with init inlined. 11 12 * platform/qt/RenderThemeQStyle.cpp: 13 (WebCore::StylePainterQStyle::StylePainterQStyle): 14 (WebCore::StylePainterQStyle::setupStyleOption): 15 * platform/qt/RenderThemeQStyle.h: 16 * platform/qt/RenderThemeQt.cpp: 17 (WebCore::StylePainter::StylePainter): 18 * platform/qt/RenderThemeQt.h: 19 * platform/qt/RenderThemeQtMobile.cpp: 20 (WebCore::StylePainterMobile::StylePainterMobile): 21 1 22 2013-08-19 Julien Brianceau <jbrianceau@nds.com> 2 23 -
trunk/Source/WebCore/platform/qt/RenderThemeQStyle.cpp
r150750 r154270 69 69 70 70 StylePainterQStyle::StylePainterQStyle(RenderThemeQStyle* theme, const PaintInfo& paintInfo, RenderObject* renderObject) 71 : StylePainter( theme, paintInfo)71 : StylePainter(paintInfo.context) 72 72 , qStyle(theme->qStyle()) 73 73 , appearance(NoControlPart) 74 74 { 75 init(paintInfo.context ? paintInfo.context : 0);75 setupStyleOption(); 76 76 if (renderObject) 77 77 appearance = theme->initializeCommonQStyleOptions(styleOption, renderObject); … … 79 79 80 80 StylePainterQStyle::StylePainterQStyle(ScrollbarThemeQStyle* theme, GraphicsContext* context) 81 : StylePainter( )81 : StylePainter(context) 82 82 , qStyle(theme->qStyle()) 83 83 , appearance(NoControlPart) 84 84 { 85 init(context); 86 } 87 88 void StylePainterQStyle::init(GraphicsContext* context) 89 { 90 painter = static_cast<QPainter*>(context->platformContext()); 85 setupStyleOption(); 86 } 87 88 void StylePainterQStyle::setupStyleOption() 89 { 91 90 if (QObject* widget = qStyle->widgetForPainter(painter)) { 92 91 styleOption.palette = widget->property("palette").value<QPalette>(); … … 94 93 styleOption.direction = static_cast<Qt::LayoutDirection>(widget->property("layoutDirection").toInt()); 95 94 } 96 97 StylePainter::init(context);98 95 } 99 96 -
trunk/Source/WebCore/platform/qt/RenderThemeQStyle.h
r130723 r154270 149 149 150 150 private: 151 void init(GraphicsContext*);151 void setupStyleOption(); 152 152 153 153 Q_DISABLE_COPY(StylePainterQStyle) -
trunk/Source/WebCore/platform/qt/RenderThemeQt.cpp
r152149 r154270 874 874 } 875 875 876 StylePainter::StylePainter(RenderThemeQt* theme, const PaintInfo& paintInfo) 877 : painter(0) 878 { 879 Q_UNUSED(theme); 880 ASSERT(paintInfo.context); 881 init(paintInfo.context); 882 } 883 884 StylePainter::StylePainter() 885 : painter(0) 886 { 887 } 888 889 void StylePainter::init(GraphicsContext* context) 890 { 891 painter = static_cast<QPainter*>(context->platformContext()); 876 StylePainter::StylePainter(GraphicsContext* context) 877 : painter(context->platformContext()) 878 { 879 ASSERT(context); 892 880 893 881 if (painter) { -
trunk/Source/WebCore/platform/qt/RenderThemeQt.h
r151783 r154270 191 191 192 192 protected: 193 StylePainter(RenderThemeQt*, const PaintInfo&); 194 StylePainter(); 195 void init(GraphicsContext*); 193 StylePainter(GraphicsContext*); 196 194 197 195 private: -
trunk/Source/WebCore/platform/qt/RenderThemeQtMobile.cpp
r152149 r154270 210 210 211 211 StylePainterMobile::StylePainterMobile(RenderThemeQtMobile* theme, const PaintInfo& paintInfo) 212 : StylePainter( theme, paintInfo)212 : StylePainter(paintInfo.context) 213 213 { 214 214 m_previousSmoothPixmapTransform = painter->testRenderHint(QPainter::SmoothPixmapTransform);
Note: See TracChangeset
for help on using the changeset viewer.