Changeset 140094 in webkit
- Timestamp:
- Jan 17, 2013 7:44:03 PM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r140091 r140094 1 2013-01-17 Rik Cabanier <cabanier@adobe.com> 2 3 Update GraphicsContext to support winding rule in clip operator for QT 4 https://bugs.webkit.org/show_bug.cgi?id=106873 5 6 Reviewed by Dirk Schulze. 7 8 Added support for winding to clip() and canvasClip() functions. 9 10 No new tests, no change in behavior. 11 12 * platform/graphics/qt/GraphicsContextQt.cpp: 13 (WebCore::GraphicsContext::clip): Use passed in winding rule. 14 (WebCore::GraphicsContext::canvasClip): Rename variable. 15 1 16 2013-01-17 Rik Cabanier <cabanier@adobe.com> 2 17 -
trunk/Source/WebCore/platform/graphics/qt/GraphicsContextQt.cpp
r139967 r140094 1252 1252 } 1253 1253 1254 // FIXME: don't ignore the winding rule. https://bugs.webkit.org/show_bug.cgi?id=106873 1255 void GraphicsContext::clip(const Path& path, WindRule) 1254 void GraphicsContext::clip(const Path& path, WindRule windRule) 1256 1255 { 1257 1256 if (paintingDisabled()) … … 1259 1258 1260 1259 QPainterPath clipPath = path.platformPath(); 1261 clipPath.setFillRule( Qt::WindingFill);1260 clipPath.setFillRule(toQtFillRule(windRule)); 1262 1261 m_data->p()->setClipPath(clipPath, Qt::IntersectClip); 1263 1262 } 1264 1263 1265 void GraphicsContext::canvasClip(const Path& path, WindRule fillRule)1266 { 1267 clip(path, fillRule);1264 void GraphicsContext::canvasClip(const Path& path, WindRule windRule) 1265 { 1266 clip(path, windRule); 1268 1267 } 1269 1268
Note: See TracChangeset
for help on using the changeset viewer.