Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1444)

Unified Diff: Source/core/svg/SVGPathParser.cpp

Issue 170453004: Add constant twoPiDouble/twoPiFloat to MathExtras.h (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add constant values to header Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/rendering/shapes/PolygonShape.cpp ('k') | Source/modules/webaudio/RealtimeAnalyser.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGPathParser.cpp
diff --git a/Source/core/svg/SVGPathParser.cpp b/Source/core/svg/SVGPathParser.cpp
index 6b7ac433993d717552ee32e63c1de09094de4f5e..57ba8a5164b2010d4690f425db17bd605ed147a6 100644
--- a/Source/core/svg/SVGPathParser.cpp
+++ b/Source/core/svg/SVGPathParser.cpp
@@ -456,9 +456,9 @@ bool SVGPathParser::decomposeArcToCubic(float angle, float rx, float ry, FloatPo
float thetaArc = theta2 - theta1;
if (thetaArc < 0 && sweepFlag)
- thetaArc += 2 * piFloat;
+ thetaArc += twoPiFloat;
else if (thetaArc > 0 && !sweepFlag)
- thetaArc -= 2 * piFloat;
+ thetaArc -= twoPiFloat;
pointTransform.makeIdentity();
pointTransform.rotate(angle);
« no previous file with comments | « Source/core/rendering/shapes/PolygonShape.cpp ('k') | Source/modules/webaudio/RealtimeAnalyser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698