|
Refactor away SVGPathSource
This CL moves the SVGPathParser::initialCommandIsMoveTo functionality into
the path data sources that needs this check - eliminating the need for the
SVGPathSource method peekSegmentType.
This leaves SVGPathParser::parsePath as a fairly trivial loop doing
parseSegment + emitSegment. Converting this function to a templated one,
The remaining two methods of the SVGPathSource interface no longer need to
be (called) virtual(ly) - allowing us too remove the interface entirely,
and simplify and inline code (hasMoreData) accordingly.
The net effect on (binary) code size is a roughtly 1.5k reduction.
Also rename and refactor some of the helpers in SVGPathStringSource.cpp
to try to better illustrate what they are used for.
BUG= 467592
Committed: https://crrev.com/848766c79ce487bc33acea38eb7c6b0cc821e6a7
Cr-Commit-Position: refs/heads/master@{#372329}
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+91 lines, -193 lines) |
Patch |
|
M |
third_party/WebKit/Source/core/animation/InterpolatedSVGPathSource.h
|
View
|
|
3 chunks |
+7 lines, -12 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/animation/PathInterpolationFunctions.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/core.gypi
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/svg/SVGPathBlender.h
|
View
|
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/svg/SVGPathBlender.cpp
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/svg/SVGPathBuilder.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/svg/SVGPathByteStreamBuilder.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/svg/SVGPathByteStreamSource.h
|
View
|
|
2 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/svg/SVGPathByteStreamSource.cpp
|
View
|
|
1 chunk |
+0 lines, -14 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/svg/SVGPathParser.h
|
View
|
1
|
1 chunk |
+12 lines, -25 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/svg/SVGPathParser.cpp
|
View
|
|
1 chunk |
+0 lines, -24 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/svg/SVGPathParserTest.cpp
|
View
|
|
2 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
|
D |
third_party/WebKit/Source/core/svg/SVGPathSource.h
|
View
|
|
1 chunk |
+0 lines, -42 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/svg/SVGPathStringBuilder.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/svg/SVGPathStringSource.h
|
View
|
|
1 chunk |
+12 lines, -6 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/svg/SVGPathStringSource.cpp
|
View
|
|
4 chunks |
+38 lines, -42 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/svg/SVGPathUtilities.cpp
|
View
|
|
4 chunks |
+4 lines, -8 lines |
0 comments
|
Download
|
Total messages: 11 (4 generated)
|