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

Issue 734053005: Remove globalSVGPath* from SVGPathUtilities.cpp (Closed)

Created:
6 years ago by fs
Modified:
6 years ago
CC:
blink-reviews, blink-reviews-rendering, zoltan1, pdr+renderingwatchlist_chromium.org, eae+blinkwatch, leviw+renderwatch, kouhei+svg_chromium.org, ed+blinkwatch_opera.com, krit, f(malita), gyuyoung.kim_webkit.org, jchaffraix+rendering, Stephen Chennney, rwlbuis, pdr+svgwatchlist_chromium.org
Project:
blink
Visibility:
Public.

Description

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

Patch Set 1 #

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

Messages

Total messages: 7 (2 generated)
fs
This ballooned a bit, but I think it should be reasonably easy to review anyway ...
6 years ago (2014-11-24 16:23:59 UTC) #2
f(malita)
Nice cleanup, LGTM! (+some follow-up ideas) https://codereview.chromium.org/734053005/diff/1/Source/core/svg/SVGPathBlender.h File Source/core/svg/SVGPathBlender.h (right): https://codereview.chromium.org/734053005/diff/1/Source/core/svg/SVGPathBlender.h#newcode38 Source/core/svg/SVGPathBlender.h:38: SVGPathBlender(SVGPathSource* fromSource, SVGPathSource* ...
6 years ago (2014-11-24 16:56:57 UTC) #3
fs
On 2014/11/24 16:56:57, Florin Malita wrote: > Nice cleanup, LGTM! > > (+some follow-up ideas) ...
6 years ago (2014-11-24 18:46:04 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/734053005/1
6 years ago (2014-11-24 18:47:15 UTC) #6
commit-bot: I haz the power
6 years ago (2014-11-24 19:25:24 UTC) #7
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://src.chromium.org/viewvc/blink?view=rev&revision=185899

Powered by Google App Engine
This is Rietveld 408576698