Chromium Code Reviews
Help | Chromium Project | Gerrit Changes | Sign in
(7)

Issue 1151573017: Web Animations: Always use svg prefix when animating SVG attributes (Closed)

Created:
4 years, 11 months ago by Eric Willigers
Modified:
4 years, 10 months ago
CC:
darktears, blink-reviews, blink-reviews-animation_chromium.org, rjwright, shans
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Web Animations: Always use svg prefix when animating SVG attributes Some SVG attribute names collide with CSS property names, and the 'offset' attribute collides with the use of 'offset' in Web Animations. We avoid conflicts by using 'svgOffset', etc. when animating SVG attributes using Web Animations. BUG=416735 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196744

Patch Set 1 #

Patch Set 2 : Only first letter changes case when svg prefix is added/removed #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -26 lines) Patch
M LayoutTests/animations/svg-attribute-interpolation/resources/interpolation-test.js View 1 1 chunk +3 lines, -20 lines 1 comment Download
M Source/core/animation/EffectInput.cpp View 1 3 chunks +12 lines, -6 lines 3 comments Download

Messages

Total messages: 10 (3 generated)
Eric Willigers
4 years, 11 months ago (2015-06-05 08:55:32 UTC) #2
shans
lgtm https://codereview.chromium.org/1151573017/diff/20001/Source/core/animation/EffectInput.cpp File Source/core/animation/EffectInput.cpp (right): https://codereview.chromium.org/1151573017/diff/20001/Source/core/animation/EffectInput.cpp#newcode66 Source/core/animation/EffectInput.cpp:66: property.insert(&first, 1, 0); This differs from the previous ...
4 years, 10 months ago (2015-06-07 06:42:06 UTC) #3
Eric Willigers
https://codereview.chromium.org/1151573017/diff/20001/Source/core/animation/EffectInput.cpp File Source/core/animation/EffectInput.cpp (right): https://codereview.chromium.org/1151573017/diff/20001/Source/core/animation/EffectInput.cpp#newcode66 Source/core/animation/EffectInput.cpp:66: property.insert(&first, 1, 0); On 2015/06/07 06:42:06, shans wrote: > ...
4 years, 10 months ago (2015-06-09 04:02:12 UTC) #5
alancutter (OOO until 2018)
lgtm with nits. https://codereview.chromium.org/1151573017/diff/20001/LayoutTests/animations/svg-attribute-interpolation/resources/interpolation-test.js File LayoutTests/animations/svg-attribute-interpolation/resources/interpolation-test.js (right): https://codereview.chromium.org/1151573017/diff/20001/LayoutTests/animations/svg-attribute-interpolation/resources/interpolation-test.js#newcode474 LayoutTests/animations/svg-attribute-interpolation/resources/interpolation-test.js:474: attributeName = 'svg' + attributeName[0].toUpperCase() + ...
4 years, 10 months ago (2015-06-09 06:25:06 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1151573017/20001
4 years, 10 months ago (2015-06-09 07:06:15 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://src.chromium.org/viewvc/blink?view=rev&revision=196744
4 years, 10 months ago (2015-06-09 08:23:40 UTC) #9
Eric Willigers
4 years, 10 months ago (2015-06-09 09:35:51 UTC) #10
Message was sent while issue was closed.
On 2015/06/09 06:25:06, alancutter wrote:
> lgtm with nits.
> 
>
https://codereview.chromium.org/1151573017/diff/20001/LayoutTests/animations/...
> File
>
LayoutTests/animations/svg-attribute-interpolation/resources/interpolation-test.js
> (right):
> 
>
https://codereview.chromium.org/1151573017/diff/20001/LayoutTests/animations/...
>
LayoutTests/animations/svg-attribute-interpolation/resources/interpolation-test.js:474:
> attributeName = 'svg' + attributeName[0].toUpperCase() +
attributeName.slice(1);
> Nit: Store this in a different variable called prefixedAttributeName (and
maybe
> drop the Name part from both).
> 
>
https://codereview.chromium.org/1151573017/diff/20001/Source/core/animation/E...
> File Source/core/animation/EffectInput.cpp (right):
> 
>
https://codereview.chromium.org/1151573017/diff/20001/Source/core/animation/E...
> Source/core/animation/EffectInput.cpp:66: property.insert(&first, 1, 0);
> On 2015/06/09 at 04:02:12, Eric Willigers wrote:
> > On 2015/06/07 06:42:06, shans wrote:
> > > This differs from the previous behaviour, but I assume this is more
correct
> > > (single char toLower rather than whole string)?
> > 
> > Yes, I was sloppy before, it is now correct.
> 
> So we no longer support animating things like svgcx or svgCX? You should
mention
> this in the description if it is the case.

Sorry Alan, I noticed the nits after it committed. The feature it still behind a
flag, this change does prevent 'svgcx' and 'svgCX' from working, which is
important as we hope to soon move the feature out from behind a flag.

Powered by Google App Engine
This is Rietveld 408576698