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

Issue 1491023003: Refactor SVGAnimatedLength negative values mode (Closed)

Created:
5 years ago by suzyh_UTC10 (ex-contributor)
Modified:
5 years ago
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

Refactor SVGAnimatedLength negative values mode The SVGAnimatedLength constructor takes an additional argument (compared to the arguments passed to other SVGAnimatedProperty classes) which represents whether the length may be negative. Although this is stored as a property of SVGAnimatedLength, the value is determined by the particular SVG attribute that the SVGAnimatedLength is representing, and does not change. In order to facilitate the implementation of additive animations for AnimatedLength, this patch removes this additional argument, and instead implements a helper function in SVGLength.h to look up the value for a given SVG attribute. BUG=530436 Committed: https://crrev.com/acabbbf906dfc4c71bf2ad097527b87cc2227db6 Cr-Commit-Position: refs/heads/master@{#362941}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Replace SVGLengthNegativeValuesMode enum with bool #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -90 lines) Patch
M third_party/WebKit/Source/core/animation/LengthSVGInterpolation.h View 2 chunks +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/animation/LengthSVGInterpolation.cpp View 1 4 chunks +3 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/animation/ListSVGInterpolation.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/SVGAnimatedLength.h View 1 chunk +3 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGAnimatedLength.cpp View 1 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/SVGCircleElement.cpp View 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGCursorElement.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGEllipseElement.cpp View 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGFilterElement.cpp View 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGFilterPrimitiveStandardAttributes.cpp View 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGForeignObjectElement.cpp View 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGImageElement.cpp View 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGLength.h View 1 2 chunks +1 line, -5 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGLength.cpp View 1 2 chunks +20 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGLineElement.cpp View 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGLinearGradientElement.cpp View 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGMarkerElement.cpp View 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGMaskElement.cpp View 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGPatternElement.cpp View 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGRadialGradientElement.cpp View 1 chunk +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGRectElement.cpp View 1 chunk +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGSVGElement.cpp View 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGTextContentElement.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/SVGTextPathElement.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/SVGUseElement.cpp View 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 17 (8 generated)
suzyh_UTC10 (ex-contributor)
5 years ago (2015-12-02 03:35:51 UTC) #2
suzyh_UTC10 (ex-contributor)
5 years ago (2015-12-02 03:51:51 UTC) #4
alancutter (OOO until 2018)
Non OWNER lgtm with nit. https://codereview.chromium.org/1491023003/diff/1/third_party/WebKit/Source/core/svg/SVGLength.cpp File third_party/WebKit/Source/core/svg/SVGLength.cpp (right): https://codereview.chromium.org/1491023003/diff/1/third_party/WebKit/Source/core/svg/SVGLength.cpp#newcode261 third_party/WebKit/Source/core/svg/SVGLength.cpp:261: return SVGLengthNegativeValuesMode::AllowNegativeLengths; ASSERT_NOT_REACHED();
5 years ago (2015-12-02 03:55:34 UTC) #6
fs
This is great! I just have one small adjustment I'd like to see. https://codereview.chromium.org/1491023003/diff/1/third_party/WebKit/Source/core/svg/SVGAnimatedLength.cpp File ...
5 years ago (2015-12-02 14:45:42 UTC) #8
suzyh_UTC10 (ex-contributor)
On 2015/12/02 at 14:45:42, fs wrote: > This is great! I just have one small ...
5 years ago (2015-12-03 04:35:32 UTC) #9
fs
lgtm
5 years ago (2015-12-03 08:43:48 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1491023003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1491023003/20001
5 years ago (2015-12-03 08:43:59 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years ago (2015-12-03 10:21:03 UTC) #15
commit-bot: I haz the power
5 years ago (2015-12-03 10:22:35 UTC) #17
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/acabbbf906dfc4c71bf2ad097527b87cc2227db6
Cr-Commit-Position: refs/heads/master@{#362941}

Powered by Google App Engine
This is Rietveld 408576698