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

Issue 361543002: Remove SVGPaint (Closed)

Created:
6 years, 5 months ago by rwlbuis
Modified:
6 years, 5 months ago
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-rendering, dglazkov+blink, eae+blinkwatch, ed+blinkwatch_opera.com, f(malita), fs, gyuyoung.kim_webkit.org, jchaffraix+rendering, kouhei+svg_chromium.org, leviw+renderwatch, pdr., rune+blink, Stephen Chennney, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Remove SVGPaint Remove SVGPaint usage, instead use CSSValueList and CSSPrimitiveValue for the fill/stroke CSS values. This allows us to remove SVGPaint specific code in CSSValue. Note that new result for svg/css/svg-attribute-parser-mode.svg matches FireFox. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=177550

Patch Set 1 #

Patch Set 2 : Remove even more SVGPaint stuff #

Patch Set 3 : Fix tests #

Total comments: 3

Patch Set 4 : Give SVGPaintType a new home #

Total comments: 8

Patch Set 5 : Address issues #

Total comments: 1

Patch Set 6 : Patch for landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+169 lines, -374 lines) Patch
M LayoutTests/svg/css/getComputedStyle-basic-expected.txt View 1 2 4 chunks +4 lines, -4 lines 0 comments Download
M LayoutTests/svg/css/script-tests/svg-attribute-parser-mode.js View 1 2 2 chunks +8 lines, -8 lines 0 comments Download
M LayoutTests/svg/css/svg-attribute-parser-mode-expected.txt View 1 2 2 chunks +8 lines, -8 lines 0 comments Download
M Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl View 1 2 3 4 5 1 chunk +34 lines, -13 lines 0 comments Download
M Source/core/animation/animatable/AnimatableSVGPaint.h View 1 2 3 4 5 4 chunks +8 lines, -8 lines 0 comments Download
M Source/core/animation/animatable/AnimatableSVGPaint.cpp View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/animation/css/CSSPropertyEquality.cpp View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M Source/core/core.gypi View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/css/CSSComputedStyleDeclaration.h View 1 2 3 4 5 2 chunks +0 lines, -2 lines 0 comments Download
M Source/core/css/CSSValue.h View 1 3 chunks +1 line, -3 lines 0 comments Download
M Source/core/css/CSSValue.cpp View 1 7 chunks +0 lines, -16 lines 0 comments Download
M Source/core/css/SVGCSSComputedStyleDeclaration.cpp View 1 2 3 4 4 chunks +20 lines, -8 lines 0 comments Download
M Source/core/css/parser/BisonCSSParser.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M Source/core/css/parser/BisonCSSParser-in.cpp View 1 2 3 4 5 1 chunk +10 lines, -0 lines 0 comments Download
M Source/core/css/parser/CSSPropertyParser.h View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/css/parser/CSSPropertyParser.cpp View 1 2 3 4 4 chunks +16 lines, -22 lines 0 comments Download
M Source/core/rendering/style/RenderStyle.h View 1 2 3 4 5 2 chunks +2 lines, -5 lines 0 comments Download
M Source/core/rendering/style/SVGRenderStyle.h View 1 2 3 4 7 chunks +10 lines, -11 lines 0 comments Download
M Source/core/rendering/style/SVGRenderStyleDefs.h View 1 2 3 4 chunks +17 lines, -5 lines 0 comments Download
M Source/core/rendering/svg/RenderSVGResource.cpp View 1 2 3 5 chunks +14 lines, -14 lines 0 comments Download
M Source/core/rendering/svg/SVGResources.cpp View 1 2 3 3 chunks +7 lines, -8 lines 0 comments Download
M Source/core/svg/SVGAnimatedTypeAnimator.cpp View 1 2 3 3 chunks +2 lines, -2 lines 0 comments Download
M Source/core/svg/SVGPaint.h View 1 2 3 1 chunk +0 lines, -134 lines 0 comments Download
D Source/core/svg/SVGPaint.cpp View 1 2 3 4 1 chunk +0 lines, -95 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
rwlbuis
PTAL
6 years, 5 months ago (2014-06-30 22:11:02 UTC) #1
pdr
I think this patch is correct but I'd like a second opinion from someone who ...
6 years, 5 months ago (2014-06-30 22:39:59 UTC) #2
leviw_travelin_and_unemployed
I'm sadly not as familiar with the parsing bits as I wish I were. I ...
6 years, 5 months ago (2014-06-30 22:57:56 UTC) #3
krit
Reviewed the CSS parser part. Some comments before OKing the patch. https://codereview.chromium.org/361543002/diff/60001/LayoutTests/svg/css/script-tests/svg-attribute-parser-mode.js File LayoutTests/svg/css/script-tests/svg-attribute-parser-mode.js (right): ...
6 years, 5 months ago (2014-07-01 06:01:55 UTC) #4
fs
https://codereview.chromium.org/361543002/diff/60001/Source/core/css/SVGCSSComputedStyleDeclaration.cpp File Source/core/css/SVGCSSComputedStyleDeclaration.cpp (right): https://codereview.chromium.org/361543002/diff/60001/Source/core/css/SVGCSSComputedStyleDeclaration.cpp#newcode85 Source/core/css/SVGCSSComputedStyleDeclaration.cpp:85: PassRefPtrWillBeRawPtr<CSSValue> adjustSVGPaintForCurrentColor(SVGPaintType ptype, const String& url, const Color& color, ...
6 years, 5 months ago (2014-07-01 07:52:12 UTC) #5
rwlbuis
On 2014/07/01 07:52:12, fs wrote: > https://codereview.chromium.org/361543002/diff/60001/Source/core/css/SVGCSSComputedStyleDeclaration.cpp > File Source/core/css/SVGCSSComputedStyleDeclaration.cpp (right): > > https://codereview.chromium.org/361543002/diff/60001/Source/core/css/SVGCSSComputedStyleDeclaration.cpp#newcode85 > ...
6 years, 5 months ago (2014-07-01 14:23:09 UTC) #6
rwlbuis
On 2014/07/01 06:01:55, krit wrote: > Reviewed the CSS parser part. Some comments before OKing ...
6 years, 5 months ago (2014-07-01 15:31:42 UTC) #7
rwlbuis
> > IMO, you could always create a space separated list, check for URI or ...
6 years, 5 months ago (2014-07-01 18:45:35 UTC) #8
krit
On 2014/07/01 18:45:35, rwlbuis wrote: > > > IMO, you could always create a space ...
6 years, 5 months ago (2014-07-03 04:57:21 UTC) #9
krit
lgtm LGTM
6 years, 5 months ago (2014-07-03 05:00:32 UTC) #10
davve
Non-owner LGTM. In the description: "This allows use " -> "This allows us" Please also ...
6 years, 5 months ago (2014-07-03 11:41:25 UTC) #11
rwlbuis
The CQ bit was checked by rob.buis@samsung.com
6 years, 5 months ago (2014-07-04 11:25:23 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rob.buis@samsung.com/361543002/80001
6 years, 5 months ago (2014-07-04 11:26:29 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-04 11:26:49 UTC) #14
commit-bot: I haz the power
Failed to apply patch for Source/core/animation/AnimatableSVGPaint.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; can't find ...
6 years, 5 months ago (2014-07-04 11:26:50 UTC) #15
rwlbuis
On 2014/07/03 11:41:25, David Vest wrote: > Non-owner LGTM. > > In the description: "This ...
6 years, 5 months ago (2014-07-04 13:06:26 UTC) #16
rwlbuis
The CQ bit was checked by rob.buis@samsung.com
6 years, 5 months ago (2014-07-04 13:06:54 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rob.buis@samsung.com/361543002/120001
6 years, 5 months ago (2014-07-04 13:07:20 UTC) #18
rwlbuis
The CQ bit was unchecked by rob.buis@samsung.com
6 years, 5 months ago (2014-07-04 22:13:24 UTC) #19
rwlbuis
The CQ bit was checked by rob.buis@samsung.com
6 years, 5 months ago (2014-07-04 22:13:26 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rob.buis@samsung.com/361543002/120001
6 years, 5 months ago (2014-07-04 22:13:46 UTC) #21
commit-bot: I haz the power
6 years, 5 months ago (2014-07-05 01:16:47 UTC) #22
Message was sent while issue was closed.
Change committed as 177550

Powered by Google App Engine
This is Rietveld 408576698