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

Issue 2733773004: Add check for missing visual rect updates and fix failures (Closed)

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

Description

Add check for missing visual rect updates and fix failures Check if visual rect will change when an object is walked during PrePaintTreeWalk but the object is not marked for checking paint invalidation. Found and fixed several issues: - when a frame is relocated,set the LayoutView mayNeedPaintInvalidation(). - For clip change detection, we should not reset ancestorTransformedOrRootPaintLayer on sub frames. - For SPv2, computeLocationInBacking() should just return paintOffset because the "backing" is the enclosing transform node. - When LayoutTable's visual rect changes, we should check for paint invalidation of all LayoutTableCols which use LayoutTable's localVisualRect() as theirs. - Don't inflate for filter if the filter is on a composited layer. Also fixed flakiness of paint/invalidation/resize-iframe-text.html (which discovered the clip change detection issue). BUG=636271 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Review-Url: https://codereview.chromium.org/2733773004 Cr-Commit-Position: refs/heads/master@{#455266} Committed: https://chromium.googlesource.com/chromium/src/+/2c0032c9ca74bd03925a7367f4482e4ec6f06278

Patch Set 1 #

Total comments: 2

Patch Set 2 : - #

Patch Set 3 : - #

Patch Set 4 : - #

Unified diffs Side-by-side diffs Delta from patch set Stats (+158 lines, -53 lines) Patch
M third_party/WebKit/LayoutTests/FlagExpectations/enable-slimming-paint-v2 View 1 2 3 2 chunks +1 line, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/TestExpectations View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/paint/invalidation/filter-invalidation-with-composited-container-change-expected.txt View 1 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/paint/invalidation/filter-repaint-accelerated-on-accelerated-filter-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/paint/invalidation/resize-iframe-text.html View 1 chunk +13 lines, -4 lines 0 comments Download
D third_party/WebKit/LayoutTests/paint/invalidation/resources/resize-iframe-text-src.html View 1 chunk +0 lines, -4 lines 0 comments Download
M third_party/WebKit/LayoutTests/paint/invalidation/svg/embedded-svg-size-changes-no-layout-triggers-expected.txt View 1 2 chunks +32 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/resize-iframe-text-expected.png View Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/paint/invalidation/resize-iframe-text-expected.txt View 3 chunks +8 lines, -31 lines 0 comments Download
M third_party/WebKit/LayoutTests/virtual/disable-spinvalidation/paint/invalidation/svg/embedded-svg-size-changes-no-layout-triggers-expected.txt View 1 2 2 chunks +32 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameView.cpp View 1 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/PaintInvalidationTest.cpp View 1 2 chunks +34 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintInvalidator.cpp View 1 2 2 chunks +21 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/TablePaintInvalidator.cpp View 1 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (21 generated)
Xianzhu
3 years, 9 months ago (2017-03-06 20:55:42 UTC) #5
chrishtr
https://codereview.chromium.org/2733773004/diff/1/third_party/WebKit/Source/core/paint/PaintInvalidationTest.cpp File third_party/WebKit/Source/core/paint/PaintInvalidationTest.cpp (right): https://codereview.chromium.org/2733773004/diff/1/third_party/WebKit/Source/core/paint/PaintInvalidationTest.cpp#newcode56 third_party/WebKit/Source/core/paint/PaintInvalidationTest.cpp:56: setBodyInnerHTML( if (REF::rootLayerScrollingEnabled()) return ?
3 years, 9 months ago (2017-03-06 22:44:28 UTC) #8
Xianzhu
Also fixed two more cases of failures. https://codereview.chromium.org/2733773004/diff/1/third_party/WebKit/Source/core/paint/PaintInvalidationTest.cpp File third_party/WebKit/Source/core/paint/PaintInvalidationTest.cpp (right): https://codereview.chromium.org/2733773004/diff/1/third_party/WebKit/Source/core/paint/PaintInvalidationTest.cpp#newcode56 third_party/WebKit/Source/core/paint/PaintInvalidationTest.cpp:56: setBodyInnerHTML( On ...
3 years, 9 months ago (2017-03-07 00:22:08 UTC) #11
chrishtr
lgtm
3 years, 9 months ago (2017-03-07 00:27:42 UTC) #13
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/2733773004/40001
3 years, 9 months ago (2017-03-07 02:22:50 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: linux_layout_tests_slimming_paint_v2 on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_layout_tests_slimming_paint_v2/builds/3109)
3 years, 9 months ago (2017-03-07 03:30:17 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/2733773004/40001
3 years, 9 months ago (2017-03-07 06:02:45 UTC) #22
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/2733773004/60001
3 years, 9 months ago (2017-03-07 06:29:51 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/379368)
3 years, 9 months ago (2017-03-07 08:44:00 UTC) #27
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/2733773004/60001
3 years, 9 months ago (2017-03-07 16:50:06 UTC) #29
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/2c0032c9ca74bd03925a7367f4482e4ec6f06278
3 years, 9 months ago (2017-03-07 22:48:56 UTC) #32
wkorman
3 years, 9 months ago (2017-03-07 23:00:33 UTC) #33
Message was sent while issue was closed.
On 2017/03/07 22:48:56, commit-bot: I haz the power wrote:
> Committed patchset #4 (id:60001) as
>
https://chromium.googlesource.com/chromium/src/+/2c0032c9ca74bd03925a7367f448...

This change sounds amazing!

Powered by Google App Engine
This is Rietveld 408576698