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

Issue 1382163003: Split SVGFilterbuilder into "builder" and "node map" parts (Closed)

Created:
5 years, 2 months ago by fs
Modified:
5 years, 2 months ago
Reviewers:
pdr., Stephen White
CC:
blink-reviews, blink-reviews-layout_chromium.org, blink-reviews-paint_chromium.org, chromium-reviews, dshwang, krit, eae+blinkwatch, f(malita), gyuyoung2, jchaffraix+rendering, kouhei+svg_chromium.org, leviw+renderwatch, pdr+svgwatchlist_chromium.org, pdr+renderingwatchlist_chromium.org, rwlbuis, Stephen Chennney, slimming-paint-reviews_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Split SVGFilterbuilder into "builder" and "node map" parts This separates the longer lived state (the LayoutObject->FilterEffect and FilterEffect dependents maps) from the state that's only used/valid while building a (sub)filter-graph. The former is moved to the new class SVGFilterGraphNodeMap while the latter remain in SVGFilterBuilder. SVGFilterBuilder can thus be converted to something that is allocated on the stack and only kept for the building operation. FilterData is changed to the keep a SVGFilterGraphNodeMap instead of a builder. The graph-building code in ReferenceFilterBuilder::build and LayoutSVGResourceFilter::buildPrimitives is consolidated into SVGFilterBuilder::buildGraph, with the more "relaxed" behavior of the former kept. This should only result in a change in behavior for the case where externally referenced filters are used. BUG=109224, 533457 Committed: https://crrev.com/e795c33a0120bf58d20fc324111c9108b3fc815e Cr-Commit-Position: refs/heads/master@{#353125}

Patch Set 1 #

Total comments: 5

Patch Set 2 : No SVGFilterBuilder::m_filter; Reverse order of args to addPrimitive. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+167 lines, -169 lines) Patch
M third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceFilter.h View 2 chunks +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceFilter.cpp View 4 chunks +8 lines, -42 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/ReferenceFilterBuilder.cpp View 1 3 chunks +4 lines, -44 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/SVGLayoutTreeAsText.cpp View 1 2 chunks +6 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/paint/SVGFilterPainter.cpp View 1 1 chunk +8 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/svg/graphics/filters/SVGFilterBuilder.h View 1 2 chunks +34 lines, -22 lines 0 comments Download
M third_party/WebKit/Source/core/svg/graphics/filters/SVGFilterBuilder.cpp View 1 2 chunks +106 lines, -47 lines 0 comments Download

Messages

Total messages: 12 (2 generated)
fs
The image might be more complete with the following in mind: https://codereview.chromium.org/1378163003 https://codereview.chromium.org/1383013002 (The former ...
5 years, 2 months ago (2015-10-02 14:17:17 UTC) #2
Stephen White
This seems like a great direction. I'd like to take a more detailed look, but ...
5 years, 2 months ago (2015-10-02 14:56:07 UTC) #3
fs
On 2015/10/02 at 14:56:07, senorblanco wrote: > This seems like a great direction. I'd like ...
5 years, 2 months ago (2015-10-02 14:57:17 UTC) #4
fs
On 2015/10/02 at 14:57:17, fs wrote: > On 2015/10/02 at 14:56:07, senorblanco wrote: > > ...
5 years, 2 months ago (2015-10-07 15:59:26 UTC) #5
Stephen White
A number of css3/filters tests are currently marked for rebaseline (and the ARB seems to ...
5 years, 2 months ago (2015-10-07 19:44:01 UTC) #6
fs
On 2015/10/07 at 19:44:01, senorblanco wrote: > A number of css3/filters tests are currently marked ...
5 years, 2 months ago (2015-10-08 10:53:12 UTC) #7
Stephen White
LGTM https://codereview.chromium.org/1382163003/diff/1/third_party/WebKit/Source/core/svg/graphics/filters/SVGFilterBuilder.cpp File third_party/WebKit/Source/core/svg/graphics/filters/SVGFilterBuilder.cpp (right): https://codereview.chromium.org/1382163003/diff/1/third_party/WebKit/Source/core/svg/graphics/filters/SVGFilterBuilder.cpp#newcode144 third_party/WebKit/Source/core/svg/graphics/filters/SVGFilterBuilder.cpp:144: m_filter->setLastEffect(m_lastEffect); On 2015/10/08 10:53:11, fs wrote: > On ...
5 years, 2 months ago (2015-10-08 18:48:03 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1382163003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1382163003/20001
5 years, 2 months ago (2015-10-08 19:29:42 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 2 months ago (2015-10-08 20:21:43 UTC) #11
commit-bot: I haz the power
5 years, 2 months ago (2015-10-08 20:22:47 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/e795c33a0120bf58d20fc324111c9108b3fc815e
Cr-Commit-Position: refs/heads/master@{#353125}

Powered by Google App Engine
This is Rietveld 408576698