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

Issue 2444593002: Introduce Layout*::adjustVisualRectForRasterEffects and use it for SVG hairlines. (Closed)

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

Description

Introduce Layout*::adjustVisualRectForRasterEffects and use it for SVG hairlines. BUG=651511 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 NOTRY=true (added after it passed on all CQ bots except android which failed because of Java heap error) Committed: https://crrev.com/e0679d9453c26e2c2c1de1d3bfefadc7f83a364a Cr-Commit-Position: refs/heads/master@{#427125}

Patch Set 1 #

Patch Set 2 : none #

Total comments: 3

Patch Set 3 : none #

Patch Set 4 : none #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+465 lines, -417 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 1 chunk +35 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/paint/invalidation/svg/absolute-sized-document-no-scrollbars-expected.txt View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/paint/invalidation/svg/deep-dynamic-updates-expected.txt View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/paint/invalidation/svg/hairline-stroke-squarecap-expected.txt View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/paint/invalidation/svg/js-late-marker-and-object-creation-expected.txt View 1 2 1 chunk +7 lines, -7 lines 0 comments Download
M third_party/WebKit/LayoutTests/paint/invalidation/svg/js-late-marker-creation-expected.txt View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/paint/invalidation/svg/js-repaint-rect-on-path-with-stroke-expected.txt View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/paint/invalidation/svg/js-update-bounce-expected.txt View 1 2 2 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/paint/invalidation/svg/js-update-container-expected.txt View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/paint/invalidation/svg/js-update-polygon-changes-expected.txt View 1 2 2 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/paint/invalidation/svg/js-update-polygon-removal-expected.txt View 1 2 2 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/paint/invalidation/svg/js-update-style-expected.txt View 1 2 1 chunk +12 lines, -12 lines 0 comments Download
M third_party/WebKit/LayoutTests/paint/invalidation/svg/js-update-transform-addition-expected.txt View 1 2 1 chunk +6 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/paint/invalidation/svg/js-update-transform-changes-expected.txt View 1 2 1 chunk +6 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/paint/invalidation/svg/marker-child-changes-css-expected.txt View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/paint/invalidation/svg/marker-child-changes-expected.txt View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/paint/invalidation/svg/marker-strokeWidth-changes-expected.txt View 1 2 1 chunk +5 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/paint/invalidation/svg/marker-viewBox-changes-expected.txt View 1 2 1 chunk +5 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/paint/invalidation/svg/paintorder-filtered-expected.txt View 1 2 3 chunks +9 lines, -9 lines 0 comments Download
M third_party/WebKit/LayoutTests/paint/invalidation/svg/path-pathlength-change-expected.txt View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/paint/invalidation/svg/relative-sized-document-scrollbars-expected.txt View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/paint/invalidation/svg/repaint-paintorder-expected.txt View 1 2 2 chunks +11 lines, -11 lines 0 comments Download
M third_party/WebKit/LayoutTests/paint/invalidation/svg/repaint-stroke-width-changes-expected.txt View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/paint/invalidation/svg/stroke-opacity-update-expected.txt View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/svg/animated-path-inside-transformed-html-expected.txt View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/svg/hit-test-with-br-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/svg/js-late-clipPath-creation-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/svg/relative-sized-content-with-resources-expected.txt View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/svg/tabgroup-expected.txt View 1 2 17 chunks +96 lines, -96 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/svg/use-detach-expected.txt View 1 2 1 chunk +18 lines, -18 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/svg/use-setAttribute-crash-expected.txt View 1 2 2 chunks +7 lines, -7 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/paint/invalidation/svg/deep-nested-embedded-svg-size-changes-no-layout-triggers-1-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/paint/invalidation/svg/deep-nested-embedded-svg-size-changes-no-layout-triggers-2-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/paint/invalidation/svg/relative-sized-document-scrollbars-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/paint/invalidation/svg/relative-sized-document-scrollbars-text-zoom-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/paint/invalidation/svg/window-expected.txt View 1 2 15 chunks +185 lines, -185 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.h View 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp View 1 2 1 chunk +11 lines, -0 lines 4 comments Download
M third_party/WebKit/Source/core/layout/svg/SVGLayoutSupport.cpp View 1 chunk +0 lines, -22 lines 0 comments Download
M third_party/WebKit/Source/core/paint/ObjectPaintInvalidator.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 35 (22 generated)
chrishtr
https://codereview.chromium.org/2444593002/diff/20001/third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp File third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp (right): https://codereview.chromium.org/2444593002/diff/20001/third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp#newcode52 third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp:52: visualRect.expand(IntRectOutsets(2, 2, 2, 2)); Because this code doesn't understand ...
4 years, 2 months ago (2016-10-22 00:01:11 UTC) #4
pdr.
This was much simpler than I expected. Looking forward to the try bot results for ...
4 years, 2 months ago (2016-10-22 00:16:51 UTC) #7
Xianzhu
https://codereview.chromium.org/2444593002/diff/20001/third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp File third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp (right): https://codereview.chromium.org/2444593002/diff/20001/third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp#newcode52 third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp:52: visualRect.expand(IntRectOutsets(2, 2, 2, 2)); On 2016/10/22 00:01:11, chrishtr - ...
4 years, 2 months ago (2016-10-22 00:35:47 UTC) #8
chrishtr
https://codereview.chromium.org/2444593002/diff/20001/third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp File third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp (right): https://codereview.chromium.org/2444593002/diff/20001/third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp#newcode52 third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp:52: visualRect.expand(IntRectOutsets(2, 2, 2, 2)); On 2016/10/22 at 00:35:46, Xianzhu ...
4 years, 2 months ago (2016-10-22 06:21:04 UTC) #11
chrishtr
There are some failures in svg/, which are all changes to the layout tree as ...
4 years, 2 months ago (2016-10-22 19:32:07 UTC) #19
chrishtr
The latest patchset passes the dry-run CQ. Please double-check the changes to invalidation output as ...
4 years, 2 months ago (2016-10-22 23:24:49 UTC) #22
Xianzhu
lgtm. The layout test results look good. As chrishtr is on vacation I'd like to ...
4 years, 1 month ago (2016-10-24 16:17:30 UTC) #23
pdr.
On 2016/10/24 at 16:17:30, wangxianzhu wrote: > lgtm. > > The layout test results look ...
4 years, 1 month ago (2016-10-24 16:50:15 UTC) #24
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/2444593002/3
4 years, 1 month ago (2016-10-24 16:59:03 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/2444593002/3
4 years, 1 month ago (2016-10-24 19:28:53 UTC) #30
commit-bot: I haz the power
Committed patchset #4 (id:3)
4 years, 1 month ago (2016-10-24 19:48:32 UTC) #32
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/e0679d9453c26e2c2c1de1d3bfefadc7f83a364a Cr-Commit-Position: refs/heads/master@{#427125}
4 years, 1 month ago (2016-10-24 19:56:02 UTC) #34
chrishtr
4 years, 1 month ago (2016-10-31 20:52:01 UTC) #35
Message was sent while issue was closed.
https://codereview.chromium.org/2444593002/diff/3/third_party/WebKit/Source/c...
File third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp (right):

https://codereview.chromium.org/2444593002/diff/3/third_party/WebKit/Source/c...
third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp:51: if
(styleRef().svgStyle().hasVisibleStroke()) {
On 2016/10/24 at 16:17:30, Xianzhu wrote:
> We should add !visualRect.isEmpty() to avoid inflating an empty rect to
non-empty.

Verified done by wangxianzhu.

https://codereview.chromium.org/2444593002/diff/3/third_party/WebKit/Source/c...
third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp:52: float pad =
0.5f;
On 2016/10/24 at 16:17:30, Xianzhu wrote:
> Nit: s/float/LayoutUnit/


Verified done by wangxianzhu.

Powered by Google App Engine
This is Rietveld 408576698