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

Issue 2624383002: Apply SVG viewport clips in PaintLayer; paint background of replaced like boxes. (Closed)

Created:
3 years, 11 months ago by chrishtr
Modified:
3 years, 11 months ago
Reviewers:
pdr.
CC:
blink-reviews, blink-reviews-paint_chromium.org, chromium-reviews, dshwang
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Apply SVG viewport clips in PaintLayer; paint background of replaced like boxes. This patch: 1. Starts painting the background of LayoutReplaced elements in the background phase, rather than the foreground phase. This makes them behave like other boxes. 2. Because of 1, we can now treat overflow clips that apply to replaced elements like other overflow clips; in particular this applies to SVG root viewport clips. Now these clips are applied in PaintLayer for self-painting PaintLayer SVG root elements, and BoxClipper otherwise clips them. 3. Replaced outlines already paint in the outline phase; removed unneeded code in SVGRootPainter related to that. BUG=680325 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Review-Url: https://codereview.chromium.org/2624383002 Cr-Commit-Position: refs/heads/master@{#443804} Committed: https://chromium.googlesource.com/chromium/src/+/4180b2e34325e450db3d4feb3c09b58ced38e98a

Patch Set 1 #

Patch Set 2 : none #

Patch Set 3 : none #

Total comments: 3

Patch Set 4 : none #

Patch Set 5 : none #

Total comments: 1

Patch Set 6 : none #

Patch Set 7 : none #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -40 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/fast/borders/border-inner-bleed-expected.png View 1 2 3 4 5 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/http/tests/misc/slow-loading-image-in-pattern-expected.txt View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/svg/W3C-SVG-1.1/struct-frag-02-t-expected.png View 1 2 3 4 5 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/svg/custom/mouse-move-on-svg-container-standalone-expected.txt View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/svg/custom/mouse-move-on-svg-root-standalone-expected.txt View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/svg/custom/pattern-userSpaceOnUse-userToBaseTransform-expected.txt View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/svg/hixie/perf/007-expected.png View 1 2 3 4 5 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/svg/hixie/viewbox/preserveAspectRatio/001-expected.png View 1 2 3 4 5 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/fast/borders/border-inner-bleed-expected.png View 1 2 3 4 5 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/http/tests/misc/slow-loading-image-in-pattern-expected.txt View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/svg/W3C-SVG-1.1/struct-frag-02-t-expected.png View 1 2 3 4 5 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/svg/hixie/perf/007-expected.png View 1 2 3 4 5 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/svg/hixie/viewbox/preserveAspectRatio/001-expected.png View 1 2 3 4 5 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/fast/borders/border-inner-bleed-expected.png View 1 2 3 4 5 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/http/tests/misc/slow-loading-image-in-pattern-expected.txt View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/svg/W3C-SVG-1.1/struct-frag-02-t-expected.png View 1 2 3 4 5 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/svg/hixie/perf/007-expected.png View 1 2 3 4 5 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/svg/hixie/viewbox/preserveAspectRatio/001-expected.png View 1 2 3 4 5 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/svg/custom/viewport-update2-expected.txt View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/svg/custom/width-full-percentage-expected.png View 1 2 3 4 5 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/svg/filters/svg-filter-child-box-reflect.html View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/svg/filters/svg-filter-root-box-reflect.html View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/paint/BoxClipper.cpp View 1 2 3 4 1 chunk +9 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp View 1 2 3 4 5 6 2 chunks +6 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerClipperTest.cpp View 1 2 3 4 5 6 1 chunk +2 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerPainterTest.cpp View 1 2 3 4 5 6 3 chunks +6 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/paint/ReplacedPainter.cpp View 1 2 chunks +12 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/paint/SVGRootPainter.cpp View 1 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 34 (25 generated)
chrishtr
https://codereview.chromium.org/2624383002/diff/40001/third_party/WebKit/LayoutTests/svg/filters/svg-filter-child-box-reflect.html File third_party/WebKit/LayoutTests/svg/filters/svg-filter-child-box-reflect.html (right): https://codereview.chromium.org/2624383002/diff/40001/third_party/WebKit/LayoutTests/svg/filters/svg-filter-child-box-reflect.html#newcode14 third_party/WebKit/LayoutTests/svg/filters/svg-filter-child-box-reflect.html:14: overflow: visible; Added overflow: visible to this and one ...
3 years, 11 months ago (2017-01-13 21:53:35 UTC) #14
pdr.
https://codereview.chromium.org/2624383002/diff/40001/third_party/WebKit/Source/core/paint/BoxClipper.cpp File third_party/WebKit/Source/core/paint/BoxClipper.cpp (left): https://codereview.chromium.org/2624383002/diff/40001/third_party/WebKit/Source/core/paint/BoxClipper.cpp#oldcode22 third_party/WebKit/Source/core/paint/BoxClipper.cpp:22: if (box.isSVGRoot() && toLayoutSVGRoot(box).shouldApplyViewportClip()) Please move this down a ...
3 years, 11 months ago (2017-01-13 22:09:37 UTC) #16
chrishtr
https://codereview.chromium.org/2624383002/diff/40001/third_party/WebKit/Source/core/paint/BoxClipper.cpp File third_party/WebKit/Source/core/paint/BoxClipper.cpp (left): https://codereview.chromium.org/2624383002/diff/40001/third_party/WebKit/Source/core/paint/BoxClipper.cpp#oldcode22 third_party/WebKit/Source/core/paint/BoxClipper.cpp:22: if (box.isSVGRoot() && toLayoutSVGRoot(box).shouldApplyViewportClip()) On 2017/01/13 at 22:09:36, pdr. ...
3 years, 11 months ago (2017-01-13 22:14:22 UTC) #17
pdr.
LGTM https://codereview.chromium.org/2624383002/diff/80001/third_party/WebKit/LayoutTests/TestExpectations File third_party/WebKit/LayoutTests/TestExpectations (right): https://codereview.chromium.org/2624383002/diff/80001/third_party/WebKit/LayoutTests/TestExpectations#newcode1154 third_party/WebKit/LayoutTests/TestExpectations:1154: crbug.com/680325 svg/custom/mouse-move-on-svg-container-standalone.svg [ NeedsRebaseline ] Can you include ...
3 years, 11 months ago (2017-01-13 22:58:18 UTC) #20
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/2624383002/100001
3 years, 11 months ago (2017-01-14 16:27:13 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/369272)
3 years, 11 months ago (2017-01-14 17:32:52 UTC) #27
chrishtr
Fixed a couple more unittests that weren't expecting the new clip.
3 years, 11 months ago (2017-01-14 22:02:14 UTC) #29
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/2624383002/120001
3 years, 11 months ago (2017-01-14 22:02:25 UTC) #31
commit-bot: I haz the power
3 years, 11 months ago (2017-01-14 23:51:07 UTC) #34
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/4180b2e34325e450db3d4feb3c09...

Powered by Google App Engine
This is Rietveld 408576698