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

Unified Diff: third_party/WebKit/Source/core/svg/SVGPathSeg.h

Issue 1408143004: Use PathSegmentData+SVGPath{Consumer,Source} in PathSVGInterpolation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: InterpolatedPathSource Created 5 years, 2 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
Index: third_party/WebKit/Source/core/svg/SVGPathSeg.h
diff --git a/third_party/WebKit/Source/core/svg/SVGPathSeg.h b/third_party/WebKit/Source/core/svg/SVGPathSeg.h
index ffa59f3841f49a8e1c4e0ac55e5fedd98a2678df..86d25391216b9fe5edd16ca82b3bbb4a7eeeaf63 100644
--- a/third_party/WebKit/Source/core/svg/SVGPathSeg.h
+++ b/third_party/WebKit/Source/core/svg/SVGPathSeg.h
@@ -85,6 +85,21 @@ struct PathSegmentData {
const FloatPoint& arcRadii() const { return point1; }
float arcAngle() const { return point2.x(); }
+ float r1() const { return arcRadii().x(); }
+ float r2() const { return arcRadii().y(); }
+
+ bool largeArcFlag() const { return arcLarge; }
+ bool sweepFlag() const { return arcSweep; }
+
+ float x() const { return targetPoint.x(); }
+ float y() const { return targetPoint.y(); }
+
+ float x1() const { return point1.x(); }
+ float y1() const { return point1.y(); }
+
+ float x2() const { return point2.x(); }
+ float y2() const { return point2.y(); }
+
SVGPathSegType command;
FloatPoint targetPoint;
FloatPoint point1;
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGPathElement.cpp ('k') | third_party/WebKit/Source/core/svg/SVGPathSegList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698