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

Issue 2484153003: Use an SVGElementProxy in ReferenceClipPathOperation (Closed)

Created:
4 years, 1 month ago by fs
Modified:
4 years, 1 month ago
Reviewers:
chrishtr, pdr.
CC:
fs, darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-layout_chromium.org, blink-reviews-paint_chromium.org, blink-reviews-style_chromium.org, chromium-reviews, dglazkov+blink, dshwang, krit, eae+blinkwatch, f(malita), gyuyoung2, jchaffraix+rendering, kouhei+svg_chromium.org, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, pdr+svgwatchlist_chromium.org, rwlbuis, Stephen Chennney, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use an SVGElementProxy in ReferenceClipPathOperation This transforms ReferenceClipPathOperation into using the SVGElementProxy mechanism. Currently only for PaintLayer clients. PaintLayerFilterInfo is generalized to PaintLayerResourceInfo and used as the proxy/resource client for the 'clip-path' property. This enables change notifications to flow back to the PaintLayer from the <clipPath> subtree. The SVGElementProxySet is made a little bit generic by moving it to SVGElementRareData, however it's still only made available for the few element types that are used with it. BUG=391604 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Committed: https://crrev.com/ad7c7f0de20e3ad160f063f1990c69ce97f7e16f Cr-Commit-Position: refs/heads/master@{#432193}

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Rebase #

Total comments: 8

Patch Set 4 : Rebase; fix comments; findElement #

Unified diffs Side-by-side diffs Delta from patch set Stats (+215 lines, -283 lines) Patch
A third_party/WebKit/LayoutTests/css3/masking/clip-path-reference-mutated.html View 1 chunk +23 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/css3/masking/clip-path-reference-mutated-expected.html View 1 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp View 1 2 3 1 chunk +5 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceContainer.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceContainer.cpp View 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceFilter.h View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceFilter.cpp View 1 chunk +0 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/paint/BUILD.gn View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/paint/ClipPathClipper.cpp View 1 2 3 1 chunk +6 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/paint/FilterPainter.cpp View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayer.h View 1 2 3 chunks +7 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayer.cpp View 1 2 3 10 chunks +57 lines, -36 lines 0 comments Download
D third_party/WebKit/Source/core/paint/PaintLayerFilterInfo.h View 1 chunk +0 lines, -82 lines 0 comments Download
D third_party/WebKit/Source/core/paint/PaintLayerFilterInfo.cpp View 1 chunk +0 lines, -79 lines 0 comments Download
A + third_party/WebKit/Source/core/paint/PaintLayerResourceInfo.h View 3 chunks +12 lines, -12 lines 0 comments Download
A + third_party/WebKit/Source/core/paint/PaintLayerResourceInfo.cpp View 1 chunk +20 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/core/style/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/style/ClipPathOperation.h View 1 2 3 3 chunks +16 lines, -10 lines 0 comments Download
A third_party/WebKit/Source/core/style/ClipPathOperation.cpp View 1 2 3 1 chunk +29 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGElement.h View 1 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGElement.cpp View 1 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGElementProxy.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/SVGElementProxy.cpp View 1 2 2 chunks +6 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGElementRareData.h View 3 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGElementRareData.cpp View 3 chunks +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGFilterElement.h View 3 chunks +0 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGFilterElement.cpp View 3 chunks +0 lines, -8 lines 0 comments Download

Messages

Total messages: 32 (23 generated)
fs
4 years, 1 month ago (2016-11-14 16:31:09 UTC) #16
chrishtr
lgtm https://codereview.chromium.org/2484153003/diff/40001/third_party/WebKit/Source/core/style/ClipPathOperation.cpp File third_party/WebKit/Source/core/style/ClipPathOperation.cpp (right): https://codereview.chromium.org/2484153003/diff/40001/third_party/WebKit/Source/core/style/ClipPathOperation.cpp#newcode10 third_party/WebKit/Source/core/style/ClipPathOperation.cpp:10: m_elementProxy->addClient(client); Why have these helper methods if elementProxy() ...
4 years, 1 month ago (2016-11-14 20:56:14 UTC) #18
pdr.
LGTM https://codereview.chromium.org/2484153003/diff/40001/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp File third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp (right): https://codereview.chromium.org/2484153003/diff/40001/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp#newcode144 third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp:144: // TODO(fs): Doesn't work with forward or external ...
4 years, 1 month ago (2016-11-15 04:14:35 UTC) #19
fs
https://codereview.chromium.org/2484153003/diff/40001/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp File third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp (right): https://codereview.chromium.org/2484153003/diff/40001/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp#newcode144 third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp:144: // TODO(fs): Doesn't work with forward or external SVG ...
4 years, 1 month ago (2016-11-15 14:10:57 UTC) #22
chrishtr
https://codereview.chromium.org/2484153003/diff/40001/third_party/WebKit/Source/core/style/ClipPathOperation.cpp File third_party/WebKit/Source/core/style/ClipPathOperation.cpp (right): https://codereview.chromium.org/2484153003/diff/40001/third_party/WebKit/Source/core/style/ClipPathOperation.cpp#newcode10 third_party/WebKit/Source/core/style/ClipPathOperation.cpp:10: m_elementProxy->addClient(client); On 2016/11/15 at 14:10:56, fs wrote: > On ...
4 years, 1 month ago (2016-11-15 16:24:22 UTC) #23
fs
https://codereview.chromium.org/2484153003/diff/40001/third_party/WebKit/Source/core/style/ClipPathOperation.cpp File third_party/WebKit/Source/core/style/ClipPathOperation.cpp (right): https://codereview.chromium.org/2484153003/diff/40001/third_party/WebKit/Source/core/style/ClipPathOperation.cpp#newcode10 third_party/WebKit/Source/core/style/ClipPathOperation.cpp:10: m_elementProxy->addClient(client); On 2016/11/15 at 16:24:22, chrishtr wrote: > On ...
4 years, 1 month ago (2016-11-15 16:29:32 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2484153003/60001
4 years, 1 month ago (2016-11-15 16:30:46 UTC) #29
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 1 month ago (2016-11-15 16:36:06 UTC) #30
commit-bot: I haz the power
4 years, 1 month ago (2016-11-15 16:38:26 UTC) #32
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/ad7c7f0de20e3ad160f063f1990c69ce97f7e16f
Cr-Commit-Position: refs/heads/master@{#432193}

Powered by Google App Engine
This is Rietveld 408576698