|
Remove globalSVGPath* from SVGPathUtilities.cpp
All the globalSVGPath* globals, don't really help much since all the state
they carry are transient and not particularly expensive to recreate.
Doing this also allows us to get rid of the cleanup() method on the various
classes involved, since this is now handled by the regular scoping rules.
(In most/many cases this means that cleanup isn't necessary anymore,
because the fields being "cleaned up" previously were types without
destructors). Inline a few of the constructors to benefit more from this.
Take this opportunity to make these classes more RAII-like, and replace
pointers with references.
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=185899
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+138 lines, -305 lines) |
Patch |
|
M |
Source/core/rendering/svg/SVGPathData.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/rendering/svg/SVGRenderTreeAsText.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
Source/core/svg/SVGPathBlender.h
|
View
|
|
1 chunk |
+3 lines, -4 lines |
1 comment
|
Download
|
|
M |
Source/core/svg/SVGPathBlender.cpp
|
View
|
|
3 chunks |
+10 lines, -27 lines |
0 comments
|
Download
|
|
M |
Source/core/svg/SVGPathBuilder.h
|
View
|
|
2 chunks |
+2 lines, -5 lines |
0 comments
|
Download
|
|
M |
Source/core/svg/SVGPathBuilder.cpp
|
View
|
|
1 chunk |
+7 lines, -16 lines |
0 comments
|
Download
|
|
M |
Source/core/svg/SVGPathByteStreamBuilder.h
|
View
|
|
2 chunks |
+2 lines, -5 lines |
0 comments
|
Download
|
|
M |
Source/core/svg/SVGPathByteStreamBuilder.cpp
|
View
|
|
2 chunks |
+5 lines, -6 lines |
0 comments
|
Download
|
|
M |
Source/core/svg/SVGPathByteStreamSource.h
|
View
|
|
1 chunk |
+5 lines, -1 line |
0 comments
|
Download
|
|
M |
Source/core/svg/SVGPathByteStreamSource.cpp
|
View
|
|
1 chunk |
+0 lines, -8 lines |
0 comments
|
Download
|
|
M |
Source/core/svg/SVGPathConsumer.h
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
Source/core/svg/SVGPathElement.cpp
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
Source/core/svg/SVGPathParser.h
|
View
|
|
1 chunk |
+7 lines, -4 lines |
0 comments
|
Download
|
|
M |
Source/core/svg/SVGPathParser.cpp
|
View
|
|
2 chunks |
+0 lines, -16 lines |
0 comments
|
Download
|
|
M |
Source/core/svg/SVGPathSegList.cpp
|
View
|
|
7 chunks |
+18 lines, -35 lines |
0 comments
|
Download
|
|
M |
Source/core/svg/SVGPathSegListBuilder.h
|
View
|
|
1 chunk |
+1 line, -9 lines |
0 comments
|
Download
|
|
M |
Source/core/svg/SVGPathSegListBuilder.cpp
|
View
|
|
2 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
|
M |
Source/core/svg/SVGPathStringBuilder.h
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
Source/core/svg/SVGPathTraversalStateBuilder.h
|
View
|
|
2 chunks |
+2 lines, -5 lines |
0 comments
|
Download
|
|
M |
Source/core/svg/SVGPathTraversalStateBuilder.cpp
|
View
|
|
1 chunk |
+13 lines, -27 lines |
0 comments
|
Download
|
|
M |
Source/core/svg/SVGPathUtilities.h
|
View
|
|
1 chunk |
+8 lines, -8 lines |
0 comments
|
Download
|
|
M |
Source/core/svg/SVGPathUtilities.cpp
|
View
|
|
1 chunk |
+47 lines, -118 lines |
5 comments
|
Download
|
Total messages: 7 (2 generated)
|