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

Issue 975733002: Use Length for the stroke-dasharray property in SVGLayoutStyle (Closed)

Created:
5 years, 9 months ago by fs
Modified:
5 years, 9 months ago
Reviewers:
pdr., Eric Willigers
CC:
aandrey+blink_chromium.org, darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-animation_chromium.org, blink-reviews-css, blink-reviews-dom_chromium.org, blink-reviews-html_chromium.org, blink-reviews-rendering, blink-reviews-style_chromium.org, blink-reviews-wtf_chromium.org, dglazkov+blink, Dominik Röttsches, krit, dstockwell, eae+blinkwatch, ed+blinkwatch_opera.com, Eric Willigers, falken, f(malita), fs, gyuyoung.kim_webkit.org, horo+watch_chromium.org, jchaffraix+rendering, kinuko+worker_chromium.org, kouhei+svg_chromium.org, leviw+renderwatch, Mike Lawther (Google), Mikhail, pdr+renderingwatchlist_chromium.org, pdr+svgwatchlist_chromium.org, rjwright, rwlbuis, Stephen Chennney, shans, sof, Steve Block, Timothy Loh, zoltan1
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Use Length for the stroke-dasharray property in SVGLayoutStyle This replaces the SVGLengthList used for strokeDashArray in SVGLayoutStyle with a (reference-counted) Vector of Lengths. SVGStrokeDasharrayStyleInterpolation is updated to treat a dash array in a similar fashion, by having a list of LengthStyleInterpolations. The storage of types in SVGStrokeDasharrayStyleInterpolation is dropped for the same reason. AnimatableStrokeDasharrayList is updated to use AnimatableLengths instead of AnimatableSVGLengths. BUG=461375 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=191432

Patch Set 1 #

Total comments: 4

Patch Set 2 : Add test for style-change responsive-ness. #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+181 lines, -190 lines) Patch
M LayoutTests/animations/interpolation/svg-stroke-dasharray-interpolation.html View 3 chunks +15 lines, -14 lines 0 comments Download
M LayoutTests/animations/interpolation/svg-stroke-dasharray-interpolation-expected.txt View 4 chunks +33 lines, -33 lines 0 comments Download
A + LayoutTests/web-animations-api/animations-responsive-strokeDasharray.html View 1 1 chunk +5 lines, -5 lines 0 comments Download
M Source/core/animation/SVGStrokeDasharrayStyleInterpolation.h View 1 chunk +2 lines, -5 lines 0 comments Download
M Source/core/animation/SVGStrokeDasharrayStyleInterpolation.cpp View 5 chunks +9 lines, -16 lines 0 comments Download
M Source/core/animation/SVGStrokeDasharrayStyleInterpolationTest.cpp View 4 chunks +7 lines, -19 lines 0 comments Download
M Source/core/animation/animatable/AnimatableStrokeDasharrayList.h View 3 chunks +5 lines, -5 lines 0 comments Download
M Source/core/animation/animatable/AnimatableStrokeDasharrayList.cpp View 2 chunks +10 lines, -16 lines 0 comments Download
M Source/core/animation/animatable/AnimatableStrokeDasharrayListTest.cpp View 2 chunks +12 lines, -13 lines 0 comments Download
M Source/core/animation/animatable/AnimatableValueTestHelper.cpp View 1 chunk +7 lines, -3 lines 0 comments Download
M Source/core/animation/animatable/AnimatableValueTestHelperTest.cpp View 2 chunks +6 lines, -5 lines 0 comments Download
M Source/core/animation/css/CSSAnimatableValueFactory.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/animation/css/CSSPropertyEquality.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/LayoutStyleCSSValueMapping.cpp View 2 chunks +5 lines, -9 lines 0 comments Download
M Source/core/css/resolver/AnimatedStyleBuilder.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/resolver/StyleBuilderConverter.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/resolver/StyleBuilderConverter.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M Source/core/dom/StyleElement.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/dom/StyleEngine.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/html/forms/InputType.cpp View 1 chunk +1 line, -0 lines 2 comments Download
M Source/core/layout/style/LayoutStyle.h View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/layout/style/SVGLayoutStyle.h View 3 chunks +5 lines, -5 lines 0 comments Download
M Source/core/layout/style/SVGLayoutStyle.cpp View 1 chunk +6 lines, -0 lines 0 comments Download
M Source/core/layout/style/SVGLayoutStyleDefs.h View 2 chunks +6 lines, -2 lines 0 comments Download
M Source/core/layout/style/SVGLayoutStyleDefs.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/layout/style/SVGLayoutStyleTest.cpp View 4 chunks +17 lines, -6 lines 0 comments Download
M Source/core/layout/svg/SVGLayoutSupport.h View 3 chunks +4 lines, -0 lines 0 comments Download
M Source/core/layout/svg/SVGLayoutSupport.cpp View 3 chunks +10 lines, -16 lines 2 comments Download
M Source/core/layout/svg/SVGLayoutTreeAsText.cpp View 1 chunk +1 line, -7 lines 0 comments Download
M Source/core/workers/Worker.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/wtf/RefVector.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 12 (3 generated)
fs
With this, SVGStrokeDasharrayStyleInterpolation almost fits into the ListStyleInterpolation<...> mold. PTAL
5 years, 9 months ago (2015-03-03 19:57:17 UTC) #2
pdr.
https://codereview.chromium.org/975733002/diff/1/LayoutTests/animations/interpolation/svg-stroke-dasharray-interpolation-expected.txt File LayoutTests/animations/interpolation/svg-stroke-dasharray-interpolation-expected.txt (right): https://codereview.chromium.org/975733002/diff/1/LayoutTests/animations/interpolation/svg-stroke-dasharray-interpolation-expected.txt#newcode101 LayoutTests/animations/interpolation/svg-stroke-dasharray-interpolation-expected.txt:101: FAIL: stroke-dasharray from [0px 20px] to [40px 0px 60em] ...
5 years, 9 months ago (2015-03-03 21:08:22 UTC) #3
Eric Willigers
lgtm Add a test LayoutTests/web-animations-api/animations-responsive-strokeDasharray.html to show that stroke-dasharray animations are responsive to font size ...
5 years, 9 months ago (2015-03-04 02:21:13 UTC) #4
fs
On 2015/03/04 02:21:13, Eric Willigers wrote: > Add a test > LayoutTests/web-animations-api/animations-responsive-strokeDasharray.html to > show ...
5 years, 9 months ago (2015-03-04 09:49:31 UTC) #5
fs
pdr?
5 years, 9 months ago (2015-03-05 16:17:15 UTC) #6
pdr.
LGTM https://codereview.chromium.org/975733002/diff/20001/Source/core/html/forms/InputType.cpp File Source/core/html/forms/InputType.cpp (right): https://codereview.chromium.org/975733002/diff/20001/Source/core/html/forms/InputType.cpp#newcode35 Source/core/html/forms/InputType.cpp:35: #include "core/dom/ExceptionCode.h" Nit: were these ExceptionCode.h's needed? https://codereview.chromium.org/975733002/diff/20001/Source/core/layout/svg/SVGLayoutSupport.cpp ...
5 years, 9 months ago (2015-03-05 21:36:00 UTC) #7
fs
https://codereview.chromium.org/975733002/diff/20001/Source/core/html/forms/InputType.cpp File Source/core/html/forms/InputType.cpp (right): https://codereview.chromium.org/975733002/diff/20001/Source/core/html/forms/InputType.cpp#newcode35 Source/core/html/forms/InputType.cpp:35: #include "core/dom/ExceptionCode.h" On 2015/03/05 21:35:59, pdr wrote: > Nit: ...
5 years, 9 months ago (2015-03-06 11:27:46 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/975733002/20001
5 years, 9 months ago (2015-03-06 11:28:27 UTC) #11
commit-bot: I haz the power
5 years, 9 months ago (2015-03-06 12:49:56 UTC) #12
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=191432

Powered by Google App Engine
This is Rietveld 408576698