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

Issue 2458233002: Fix under-invalidation on SVG shape/image resize in subpixels (Closed)

Created:
4 years, 1 month ago by Xianzhu
Modified:
4 years, 1 month ago
Reviewers:
pdr.
CC:
blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, krit, eae+blinkwatch, f(malita), fs, 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

Fix under-invalidation on SVG shape/image resize in subpixels Previously we detected SVG shape/image geometry changes for paint invalidation by checking change of paint invalidation bounds. This is accurate because the bounds may be expanded to hide subpixel changes. Now mark the object for full paint invalidation during layout if geometry changes. BUG=660195 Committed: https://crrev.com/4091f74e621de0fc0d59bfb30311c7a04a51cd8b Cr-Commit-Position: refs/heads/master@{#428956}

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : - #

Total comments: 6

Patch Set 4 : - #

Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -51 lines) Patch
M third_party/WebKit/LayoutTests/paint/invalidation/svg/relative-sized-content-expected.txt View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/paint/invalidation/svg/relative-sized-deep-shadow-tree-content-expected.txt View 1 2 3 7 chunks +8 lines, -8 lines 0 comments Download
M third_party/WebKit/LayoutTests/paint/invalidation/svg/relative-sized-image-expected.txt View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/paint/invalidation/svg/relative-sized-shadow-tree-content-expected.txt View 1 2 3 7 chunks +11 lines, -11 lines 0 comments Download
A third_party/WebKit/LayoutTests/paint/invalidation/svg/resize-image-subpixel.html View 1 2 1 chunk +16 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/paint/invalidation/svg/resize-image-subpixel-expected.html View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/paint/invalidation/svg/resize-shape-subpixel.html View 1 2 1 chunk +14 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/paint/invalidation/svg/resize-shape-subpixel-expected.html View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/paint/invalidation/svg/rounded-rect-height-change-expected.txt View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/svg/relative-sized-content-expected.txt View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/svg/relative-sized-deep-shadow-tree-content-expected.txt View 1 2 7 chunks +8 lines, -8 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/svg/relative-sized-image-expected.txt View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/svg/relative-sized-shadow-tree-content-expected.txt View 1 2 7 chunks +11 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp View 1 2 3 2 chunks +7 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/LayoutSVGShape.cpp View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (13 generated)
Xianzhu
4 years, 1 month ago (2016-10-31 16:28:43 UTC) #10
pdr.
https://codereview.chromium.org/2458233002/diff/40001/third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp File third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp (right): https://codereview.chromium.org/2458233002/diff/40001/third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp#newcode111 third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp:111: if (oldBoundaries != m_objectBoundingBox) Can we use m_needsBoundariesUpdate here? ...
4 years, 1 month ago (2016-10-31 20:49:05 UTC) #13
Xianzhu
https://codereview.chromium.org/2458233002/diff/40001/third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp File third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp (right): https://codereview.chromium.org/2458233002/diff/40001/third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp#newcode111 third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp:111: if (oldBoundaries != m_objectBoundingBox) On 2016/10/31 20:49:05, pdr. wrote: ...
4 years, 1 month ago (2016-10-31 22:10:31 UTC) #14
pdr.
LGTM
4 years, 1 month ago (2016-11-01 01:35:24 UTC) #15
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/2458233002/60001
4 years, 1 month ago (2016-11-01 05:34:14 UTC) #17
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 1 month ago (2016-11-01 07:24:53 UTC) #18
commit-bot: I haz the power
4 years, 1 month ago (2016-11-01 07:26:50 UTC) #20
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/4091f74e621de0fc0d59bfb30311c7a04a51cd8b
Cr-Commit-Position: refs/heads/master@{#428956}

Powered by Google App Engine
This is Rietveld 408576698