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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGPathByteStreamSource.cpp

Issue 1416273002: Remove SVGPathElement.pathSegList and related interfaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 5 years, 1 month 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 2 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 break; 69 break;
70 case PathSegClosePath: 70 case PathSegClosePath:
71 break; 71 break;
72 case PathSegCurveToQuadraticRel: 72 case PathSegCurveToQuadraticRel:
73 case PathSegCurveToQuadraticAbs: 73 case PathSegCurveToQuadraticAbs:
74 segment.point1 = readFloatPoint(); 74 segment.point1 = readFloatPoint();
75 segment.targetPoint = readFloatPoint(); 75 segment.targetPoint = readFloatPoint();
76 break; 76 break;
77 case PathSegArcRel: 77 case PathSegArcRel:
78 case PathSegArcAbs: { 78 case PathSegArcAbs: {
79 segment.point1 = readFloatPoint(); // rx and ry 79 segment.arcRadii() = readFloatPoint();
80 segment.point2.setX(readFloat()); // angle 80 segment.setArcAngle(readFloat());
81 segment.arcLarge = readFlag(); 81 segment.arcLarge = readFlag();
82 segment.arcSweep = readFlag(); 82 segment.arcSweep = readFlag();
83 segment.targetPoint = readFloatPoint(); 83 segment.targetPoint = readFloatPoint();
84 break; 84 break;
85 } 85 }
86 default: 86 default:
87 ASSERT_NOT_REACHED(); 87 ASSERT_NOT_REACHED();
88 } 88 }
89 return segment; 89 return segment;
90 } 90 }
91 91
92 } 92 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGPathByteStreamBuilder.cpp ('k') | third_party/WebKit/Source/core/svg/SVGPathData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698