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

Issue 896773002: [svg2] Make 'x' and 'y' presentation attributes (Closed)

Created:
5 years, 10 months ago by Erik Dahlström (inactive)
Modified:
5 years, 10 months ago
Reviewers:
pdr., fs
CC:
blink-reviews, shans, eae+blinkwatch, apavlov+blink_chromium.org, Steve Block, rwlbuis, krit, blink-reviews-dom_chromium.org, blink-reviews-css, Timothy Loh, dstockwell, dglazkov+blink, jchaffraix+rendering, pdr+svgwatchlist_chromium.org, Eric Willigers, rjwright, zoltan1, sof, Dominik Röttsches, gyuyoung.kim_webkit.org, darktears, blink-reviews-rendering, blink-reviews-animation_chromium.org, pdr+renderingwatchlist_chromium.org, kouhei+svg_chromium.org, leviw+renderwatch, Mike Lawther (Google), ed+blinkwatch_opera.com, f(malita), Stephen Chennney
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

[svg2] Make 'x' and 'y' presentation attributes The following elements' x and y attributes have been made into presentation attributes: * foreignObject * image * mask * pattern * rect * svg * use The cursor, filter, all the filter primitive elements, text, tspan and textPath elements have been excluded for now. This is a partial merge of Dirk Schulze's WebKit patch http://trac.webkit.org/changeset/171591. This patch avoids reparsing the attribute values when they are added to the presentation style, which was one of the leading reasons for the slowness seen in bug 369942. BUG=400725 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=190180

Patch Set 1 #

Patch Set 2 : slim CL #

Patch Set 3 : slimmer CL #

Patch Set 4 : slimmer still CL #

Patch Set 5 : cleanup #

Total comments: 38

Patch Set 6 : codereview fixes #

Total comments: 2

Patch Set 7 : codereview fixes #

Patch Set 8 : circling back towards patchset #1 again #

Total comments: 7

Patch Set 9 : rebase #

Total comments: 1

Patch Set 10 : fix nits #

Patch Set 11 : rebase #

Patch Set 12 : compilefix #

Patch Set 13 : rebase #

Patch Set 14 : rebase#2 #

Patch Set 15 : compilefixes after rebase #

Patch Set 16 : rebase yet again :) #

Patch Set 17 : fixup after method refactoring #

Patch Set 18 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+580 lines, -44 lines) Patch
A LayoutTests/svg/css/parse-length.html View 1 2 3 4 5 6 7 8 9 1 chunk +68 lines, -0 lines 0 comments Download
A LayoutTests/svg/css/parse-length-expected.txt View 1 chunk +41 lines, -0 lines 0 comments Download
A LayoutTests/transitions/svg-layout-transition.html View 1 chunk +53 lines, -0 lines 0 comments Download
A LayoutTests/transitions/svg-layout-transition-expected.txt View 1 chunk +3 lines, -0 lines 0 comments Download
M LayoutTests/virtual/stable/webexposed/css-properties-as-js-properties-expected.txt View 1 chunk +2 lines, -0 lines 0 comments Download
M LayoutTests/webexposed/css-properties-as-js-properties-expected.txt View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/animation/css/CSSAnimatableValueFactory.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -0 lines 0 comments Download
M Source/core/animation/css/CSSPropertyEquality.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -0 lines 0 comments Download
M Source/core/css/CSSComputedStyleDeclaration.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +5 lines, -1 line 0 comments Download
M Source/core/css/CSSProperties.in View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/css/LayoutStyleCSSValueMapping.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -0 lines 0 comments Download
M Source/core/css/parser/CSSParserFastPaths.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/css/parser/CSSPropertyParser.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 15 1 chunk +4 lines, -0 lines 0 comments Download
M Source/core/css/resolver/AnimatedStyleBuilder.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +7 lines, -0 lines 0 comments Download
M Source/core/css/resolver/StyleBuilderConverter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/css/resolver/StyleBuilderConverter.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +7 lines, -0 lines 0 comments Download
M Source/core/frame/UseCounter.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -1 line 0 comments Download
M Source/core/layout/style/LayoutStyle.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/layout/style/SVGLayoutStyle.h View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +16 lines, -1 line 0 comments Download
M Source/core/layout/style/SVGLayoutStyle.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 6 chunks +12 lines, -0 lines 0 comments Download
M Source/core/layout/style/SVGLayoutStyleDefs.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +18 lines, -0 lines 0 comments Download
M Source/core/layout/style/SVGLayoutStyleDefs.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +24 lines, -1 line 0 comments Download
M Source/core/layout/svg/LayoutSVGRect.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +5 lines, -1 line 0 comments Download
M Source/core/layout/svg/SVGPathData.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +7 lines, -2 lines 0 comments Download
M Source/core/svg/SVGAnimateElement.cpp View 2 3 4 5 6 7 3 chunks +10 lines, -3 lines 0 comments Download
M Source/core/svg/SVGAnimatedTypeAnimator.cpp View 4 5 6 7 1 chunk +3 lines, -1 line 0 comments Download
M Source/core/svg/SVGAnimationElement.h View 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/svg/SVGAnimationElement.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +6 lines, -3 lines 0 comments Download
M Source/core/svg/SVGElement.h View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +6 lines, -1 line 0 comments Download
M Source/core/svg/SVGElement.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +7 lines, -0 lines 0 comments Download
M Source/core/svg/SVGForeignObjectElement.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/svg/SVGForeignObjectElement.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +26 lines, -14 lines 0 comments Download
M Source/core/svg/SVGImageElement.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/svg/SVGImageElement.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +27 lines, -8 lines 0 comments Download
M Source/core/svg/SVGLength.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +7 lines, -1 line 0 comments Download
M Source/core/svg/SVGLengthContext.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 17 2 chunks +3 lines, -0 lines 0 comments Download
M Source/core/svg/SVGLengthContext.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +15 lines, -0 lines 0 comments Download
M Source/core/svg/SVGMaskElement.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/svg/SVGMaskElement.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +32 lines, -0 lines 0 comments Download
M Source/core/svg/SVGPatternElement.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/svg/SVGPatternElement.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +32 lines, -0 lines 0 comments Download
M Source/core/svg/SVGRectElement.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -0 lines 0 comments Download
M Source/core/svg/SVGRectElement.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +35 lines, -2 lines 0 comments Download
M Source/core/svg/SVGSVGElement.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/svg/SVGSVGElement.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +22 lines, -3 lines 0 comments Download
M Source/core/svg/SVGUseElement.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -0 lines 0 comments Download
M Source/core/svg/SVGUseElement.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +32 lines, -0 lines 0 comments Download

Messages

Total messages: 53 (21 generated)
Erik Dahlström (inactive)
Perf tryruns on this CL showed no significant regressions, though the results vary a bit ...
5 years, 10 months ago (2015-02-04 12:12:59 UTC) #2
fs
On 2015/02/04 12:12:59, Erik Dahlström wrote: > Perf tryruns on this CL showed no significant ...
5 years, 10 months ago (2015-02-04 12:17:05 UTC) #3
fs
> [svg2] Make x and y presentation attributes (part #1). What's "part 2" =) - ...
5 years, 10 months ago (2015-02-04 13:24:53 UTC) #4
Erik Dahlström (inactive)
On 2015/02/04 12:17:05, fs wrote: > On 2015/02/04 12:12:59, Erik Dahlström wrote: > > Perf ...
5 years, 10 months ago (2015-02-04 13:54:23 UTC) #5
pdr.
On 2015/02/04 at 13:54:23, ed wrote: > On 2015/02/04 12:17:05, fs wrote: > > On ...
5 years, 10 months ago (2015-02-04 19:52:50 UTC) #6
Timothy Loh
https://codereview.chromium.org/896773002/diff/100001/Source/core/css/resolver/StyleBuilderConverter.cpp File Source/core/css/resolver/StyleBuilderConverter.cpp (right): https://codereview.chromium.org/896773002/diff/100001/Source/core/css/resolver/StyleBuilderConverter.cpp#newcode509 Source/core/css/resolver/StyleBuilderConverter.cpp:509: result.setQuirk(primitiveValue->isQuirkValue()); No need for quirk values
5 years, 10 months ago (2015-02-05 03:26:30 UTC) #7
Erik Dahlström (inactive)
On 2015/02/04 19:52:50, pdr wrote: > On 2015/02/04 at 13:54:23, ed wrote: > > On ...
5 years, 10 months ago (2015-02-05 09:29:16 UTC) #8
fs
https://codereview.chromium.org/896773002/diff/80001/Source/core/svg/SVGAnimationElement.cpp File Source/core/svg/SVGAnimationElement.cpp (right): https://codereview.chromium.org/896773002/diff/80001/Source/core/svg/SVGAnimationElement.cpp#newcode371 Source/core/svg/SVGAnimationElement.cpp:371: if (!targetElement->isPresentationAttribute(attributeName)) On 2015/02/04 13:24:53, fs wrote: > <to ...
5 years, 10 months ago (2015-02-05 09:37:21 UTC) #9
Erik Dahlström (inactive)
https://codereview.chromium.org/896773002/diff/80001/Source/core/rendering/style/RenderStyle.h File Source/core/rendering/style/RenderStyle.h (right): https://codereview.chromium.org/896773002/diff/80001/Source/core/rendering/style/RenderStyle.h#newcode1376 Source/core/rendering/style/RenderStyle.h:1376: void setX(Length x) { accessSVGStyle().setX(x); } On 2015/02/04 13:24:52, ...
5 years, 10 months ago (2015-02-05 16:09:03 UTC) #10
pdr.
LGTM here, but please wait for fs's as well.
5 years, 10 months ago (2015-02-05 22:25:52 UTC) #11
fs
LGTM w/ some test nits/thoughts https://codereview.chromium.org/896773002/diff/140001/LayoutTests/svg/animations/script-tests/animate-css-xml-attributeType.js File LayoutTests/svg/animations/script-tests/animate-css-xml-attributeType.js (right): https://codereview.chromium.org/896773002/diff/140001/LayoutTests/svg/animations/script-tests/animate-css-xml-attributeType.js#newcode5 LayoutTests/svg/animations/script-tests/animate-css-xml-attributeType.js:5: var polygon = createSVGElement("polygon"); ...
5 years, 10 months ago (2015-02-06 11:54:01 UTC) #13
fs
https://codereview.chromium.org/896773002/diff/160001/Source/core/svg/SVGLengthContext.h File Source/core/svg/SVGLengthContext.h (right): https://codereview.chromium.org/896773002/diff/160001/Source/core/svg/SVGLengthContext.h#newcode70 Source/core/svg/SVGLengthContext.h:70: float convertValueToUserUnits(float, SVGLengthMode, SVGLengthType fromUnit, ExceptionState&) const; If https://codereview.chromium.org/901193002/ ...
5 years, 10 months ago (2015-02-06 12:28:54 UTC) #15
Erik Dahlström (inactive)
See https://codereview.chromium.org/890123003 for the test change. https://codereview.chromium.org/896773002/diff/140001/LayoutTests/svg/animations/script-tests/animate-css-xml-attributeType.js File LayoutTests/svg/animations/script-tests/animate-css-xml-attributeType.js (right): https://codereview.chromium.org/896773002/diff/140001/LayoutTests/svg/animations/script-tests/animate-css-xml-attributeType.js#newcode5 LayoutTests/svg/animations/script-tests/animate-css-xml-attributeType.js:5: var polygon = ...
5 years, 10 months ago (2015-02-06 13:19:54 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/896773002/180001
5 years, 10 months ago (2015-02-06 13:22:08 UTC) #18
fs
https://codereview.chromium.org/896773002/diff/140001/LayoutTests/svg/css/parse-length.html File LayoutTests/svg/css/parse-length.html (right): https://codereview.chromium.org/896773002/diff/140001/LayoutTests/svg/css/parse-length.html#newcode52 LayoutTests/svg/css/parse-length.html:52: // testComputed("x", "1ex", "12.8000001907349px"); // enable this again once ...
5 years, 10 months ago (2015-02-06 13:31:56 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/45639)
5 years, 10 months ago (2015-02-06 15:08:12 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/896773002/180001
5 years, 10 months ago (2015-02-06 15:11:15 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/49691)
5 years, 10 months ago (2015-02-06 17:08:16 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/896773002/180001
5 years, 10 months ago (2015-02-08 03:17:19 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/896773002/200001
5 years, 10 months ago (2015-02-08 04:45:49 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/android_chromium_gn_compile_rel/builds/25416)
5 years, 10 months ago (2015-02-08 04:54:56 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/896773002/220001
5 years, 10 months ago (2015-02-08 04:58:10 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/41933)
5 years, 10 months ago (2015-02-08 05:05:56 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/896773002/280001
5 years, 10 months ago (2015-02-12 21:49:52 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: blink_presubmit on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/blink_presubmit/builds/26490)
5 years, 10 months ago (2015-02-12 21:56:22 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/896773002/300001
5 years, 10 months ago (2015-02-12 22:06:36 UTC) #42
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_compile_dbg on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/mac_blink_compile_dbg/builds/34982)
5 years, 10 months ago (2015-02-12 22:16:55 UTC) #44
fs
lgtm
5 years, 10 months ago (2015-02-13 08:41:38 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/896773002/320001
5 years, 10 months ago (2015-02-13 08:42:23 UTC) #47
commit-bot: I haz the power
Try jobs failed on following builders: blink_presubmit on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/blink_presubmit/builds/26534)
5 years, 10 months ago (2015-02-13 08:49:15 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/896773002/340001
5 years, 10 months ago (2015-02-14 01:34:10 UTC) #52
commit-bot: I haz the power
5 years, 10 months ago (2015-02-14 02:29:56 UTC) #53
Message was sent while issue was closed.
Committed patchset #18 (id:340001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=190180

Powered by Google App Engine
This is Rietveld 408576698