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

Issue 1460253002: SVGPath object "mutability" cleanup (Closed)

Created:
5 years, 1 month ago by fs
Modified:
5 years, 1 month ago
Reviewers:
pdr., f(malita)
CC:
fs, darktears, blink-reviews, blink-reviews-animation_chromium.org, chromium-reviews, krit, Eric Willigers, f(malita), gyuyoung2, kouhei+svg_chromium.org, pdr+svgwatchlist_chromium.org, rjwright, rwlbuis, Stephen Chennney, shans
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

SVGPath object "mutability" cleanup Move addToSVGPathByteStream to SVGPath.cpp (the only place using it), rename it to addPathByteStreams. Move the "regular" blending out into a helper(blendPathByteStreams), and eliminate the redundant copy. Make the functions more "functional" (return the result.) Add a (private) setter for byte-stream data and use that to ensure invalidation of the cached path. Also add an SVGPath::create(...) accepting a SVGPathByteStream and use that in PathSVGInterpolation. Inline mutableByteStream into the remaining user. Committed: https://crrev.com/3bb121da7ff1f82996caaa73339ec41cf3672cea Cr-Commit-Position: refs/heads/master@{#361128}

Patch Set 1 #

Patch Set 2 : Template fail. #

Total comments: 2

Patch Set 3 : Rebase; byteStreamWillChange->byteStreamChanged; Drop some includes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -56 lines) Patch
M third_party/WebKit/Source/core/animation/PathSVGInterpolation.cpp View 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGPath.h View 1 2 2 chunks +6 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGPath.cpp View 1 2 6 chunks +53 lines, -32 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGPathUtilities.h View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGPathUtilities.cpp View 1 2 2 chunks +0 lines, -17 lines 0 comments Download

Messages

Total messages: 10 (4 generated)
fs
5 years, 1 month ago (2015-11-23 14:08:50 UTC) #3
f(malita)
Nice cleanup, LGTM! https://codereview.chromium.org/1460253002/diff/20001/third_party/WebKit/Source/core/svg/SVGPath.cpp File third_party/WebKit/Source/core/svg/SVGPath.cpp (right): https://codereview.chromium.org/1460253002/diff/20001/third_party/WebKit/Source/core/svg/SVGPath.cpp#newcode132 third_party/WebKit/Source/core/svg/SVGPath.cpp:132: byteStreamWillChange(); Nit: since we're no longer ...
5 years, 1 month ago (2015-11-23 14:31:53 UTC) #4
fs
https://codereview.chromium.org/1460253002/diff/20001/third_party/WebKit/Source/core/svg/SVGPath.cpp File third_party/WebKit/Source/core/svg/SVGPath.cpp (right): https://codereview.chromium.org/1460253002/diff/20001/third_party/WebKit/Source/core/svg/SVGPath.cpp#newcode132 third_party/WebKit/Source/core/svg/SVGPath.cpp:132: byteStreamWillChange(); On 2015/11/23 at 14:31:53, f(malita) wrote: > Nit: ...
5 years, 1 month ago (2015-11-23 15:24:56 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1460253002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1460253002/40001
5 years, 1 month ago (2015-11-23 16:36:05 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 1 month ago (2015-11-23 17:15:34 UTC) #9
commit-bot: I haz the power
5 years, 1 month ago (2015-11-23 17:17:17 UTC) #10
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/3bb121da7ff1f82996caaa73339ec41cf3672cea
Cr-Commit-Position: refs/heads/master@{#361128}

Powered by Google App Engine
This is Rietveld 408576698