Changeset 66948 in webkit
- Timestamp:
- Sep 7, 2010 9:02:55 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 1 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r66944 r66948 1 2010-09-07 Jan E Hanssen <jhanssen@sencha.com> 2 3 Reviewed by Andreas Kling. 4 5 [Qt] Added test case for Path::length() 6 https://bugs.webkit.org/show_bug.cgi?id=45331 7 8 Also removed test case for Path::pointAtLength() that is now passing 9 10 * platform/qt/svg/dom/path-pointAtLength-expected.txt: Removed. 11 * svg/dom/path-totalLength-expected.txt: Added. 12 * svg/dom/path-totalLength.html: Added. 13 * svg/dom/script-tests/path-totalLength.js: Added. 14 (getTotalLength): 15 1 16 2010-09-07 Ojan Vafai <ojan@chromium.org> 2 17 -
trunk/WebCore/ChangeLog
r66942 r66948 1 2010-09-07 Jan E Hanssen <jhanssen@sencha.com> 2 3 Reviewed by Andreas Kling. 4 5 [Qt] Add a separate Path::closeCanvasSubpath() function for canvas paths 6 https://bugs.webkit.org/show_bug.cgi?id=45331 7 8 This is needed due to an adverse effect of the fix in 44061 that causes 9 certain paths not to be closed. This is not important for canvas paths 10 but it is for SVG paths, so splitting up the code in a generic (SVG) 11 case and one specialized for canvas. 12 13 Test: svg/dom/path-totalLength.html 14 15 * html/canvas/CanvasRenderingContext2D.cpp: 16 (WebCore::CanvasRenderingContext2D::closePath): 17 * platform/graphics/Path.h: 18 (WebCore::Path::closeCanvasSubpath): 19 * platform/graphics/qt/PathQt.cpp: 20 (WebCore::Path::closeSubpath): 21 (WebCore::Path::closeCanvasSubpath): 22 1 23 2010-09-07 Simon Fraser <simon.fraser@apple.com> 2 24 -
trunk/WebCore/html/canvas/CanvasRenderingContext2D.cpp
r66785 r66948 660 660 FloatRect boundRect = m_path.boundingRect(); 661 661 if (boundRect.width() || boundRect.height()) 662 m_path.close Subpath();662 m_path.closeCanvasSubpath(); 663 663 } 664 664 -
trunk/WebCore/platform/graphics/Path.h
r65472 r66948 134 134 void addArcTo(const FloatPoint&, const FloatPoint&, float radius); 135 135 void closeSubpath(); 136 #if PLATFORM(QT) 137 void closeCanvasSubpath(); 138 #else 139 void closeCanvasSubpath() { closeSubpath(); } 140 #endif 136 141 137 142 void addArc(const FloatPoint&, float radius, float startAngle, float endAngle, bool anticlockwise); -
trunk/WebCore/platform/graphics/qt/PathQt.cpp
r65472 r66948 265 265 void Path::closeSubpath() 266 266 { 267 m_path.closeSubpath(); 268 } 269 270 void Path::closeCanvasSubpath() 271 { 267 272 const int elementCount = m_path.elementCount(); 268 273
Note: See TracChangeset
for help on using the changeset viewer.