Changeset 60663 in webkit
- Timestamp:
- Jun 4, 2010 1:20:50 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r60660 r60663 1 2010-06-04 Qi Zhang <qi.2.zhang@nokia.com> 2 3 Reviewed by Laszlo Gombos. 4 5 [Qt] failed at http://philip.html5.org/tests/canvas/suite/tests/2d.path.arc.angle.3.html 6 https://bugs.webkit.org/show_bug.cgi?id=38537 7 8 Remove canvas/philip/tests/2d.path.arcTo.2d.path.arc.angle.3.html and 9 canvas/philip/tests/2d.path.arcTo.2d.path.arc.angle.5.html from Skipped. 10 11 * platform/qt/Skipped: 12 1 13 2010-06-04 Zhenyao Mo <zmo@google.com> 2 14 -
trunk/LayoutTests/platform/qt/Skipped
r60657 r60663 5136 5136 canvas/philip/tests/2d.line.miter.lineedge.html 5137 5137 canvas/philip/tests/2d.missingargs.html 5138 canvas/philip/tests/2d.path.arc.angle.3.html5139 canvas/philip/tests/2d.path.arc.angle.5.html5140 5138 canvas/philip/tests/2d.path.arc.twopie.3.html 5141 5139 canvas/philip/tests/2d.path.arc.zeroradius.html -
trunk/WebCore/ChangeLog
r60660 r60663 1 2010-06-04 Qi Zhang <qi.2.zhang@nokia.com> 2 3 Reviewed by Laszlo Gombos. 4 5 [Qt] failed at http://philip.html5.org/tests/canvas/suite/tests/2d.path.arc.angle.3.html 6 https://bugs.webkit.org/show_bug.cgi?id=38537 7 8 For path.arc function handle span > 2PI 9 10 * platform/graphics/qt/PathQt.cpp: 11 (WebCore::Path::addArc): 12 1 13 2010-06-04 Zhenyao Mo <zmo@google.com> 2 14 -
trunk/WebCore/platform/graphics/qt/PathQt.cpp
r59767 r60663 287 287 double height = radius*2; 288 288 289 if (!anticlockwise && (ea < sa)) 290 span += 360; 291 else if (anticlockwise && (sa < ea)) 292 span -= 360; 293 294 // this is also due to switched coordinate system 295 // we would end up with a 0 span instead of 360 296 if (!(qFuzzyCompare(span + (ea - sa) + 1, 1.0) && 297 qFuzzyCompare(qAbs(span), 360.0))) { 298 span += ea - sa; 289 if ((!anticlockwise && (ea - sa >= 360)) || (anticlockwise && (sa - ea >= 360))) 290 // If the anticlockwise argument is false and endAngle-startAngle is equal to or greater than 2*PI, or, if the 291 // anticlockwise argument is true and startAngle-endAngle is equal to or greater than 2*PI, then the arc is the whole 292 // circumference of this circle. 293 span = 360; 294 else { 295 if (!anticlockwise && (ea < sa)) 296 span += 360; 297 else if (anticlockwise && (sa < ea)) 298 span -= 360; 299 300 // this is also due to switched coordinate system 301 // we would end up with a 0 span instead of 360 302 if (!(qFuzzyCompare(span + (ea - sa) + 1, 1.0) 303 && qFuzzyCompare(qAbs(span), 360.0))) { 304 // mod 360 305 span += (ea - sa) - (static_cast<int>((ea - sa) / 360)) * 360; 306 } 299 307 } 300 308
Note: See TracChangeset
for help on using the changeset viewer.