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

Issue 1209133002: Traverse into child LayoutViews during invalidateTreeIfNeeded (Closed)

Created:
5 years, 6 months ago by Xianzhu
Modified:
5 years, 5 months ago
CC:
blink-reviews, blink-reviews-rendering, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Traverse into child LayoutViews during invalidateTreeIfNeeded If a LayoutView's paint invalidation container is not itself, we should pass cachedOffsetsEnabled and forceCheckForPaintInvalidation flags in parent's PaintInvalidationState to the LayoutView, otherwise the layout view may miss required checking of paint invalidation, or calculate cached offsets when not feasible. BUG=441671 TEST=fast/repaint/in-scaled-iframe.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=198169

Patch Set 1 #

Total comments: 3

Patch Set 2 : New method #

Total comments: 10

Patch Set 3 : Address chrishtr's comments; Fix unit tests #

Total comments: 1

Patch Set 4 : Fix failed layout tests #

Patch Set 5 : Fix crashes #

Patch Set 6 : NeedsRebaselines (see previous patch set for expected test expectation changes) #

Total comments: 2

Patch Set 7 : public invalidateTreeIfNeeded #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -22 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
A LayoutTests/fast/repaint/in-scaled-iframe.html View 1 chunk +16 lines, -0 lines 0 comments Download
A + LayoutTests/fast/repaint/in-scaled-iframe-expected.txt View 1 chunk +3 lines, -4 lines 0 comments Download
M Source/core/frame/FrameView.h View 1 2 3 4 5 6 3 chunks +4 lines, -2 lines 0 comments Download
M Source/core/frame/FrameView.cpp View 1 2 3 4 3 chunks +19 lines, -12 lines 0 comments Download
M Source/core/layout/LayoutObject.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/layout/LayoutObject.cpp View 1 2 3 4 5 2 chunks +6 lines, -1 line 0 comments Download
M Source/core/layout/LayoutPart.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/layout/LayoutPart.cpp View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download
M Source/core/layout/PaintInvalidationState.h View 1 2 3 2 chunks +6 lines, -1 line 0 comments Download
M Source/core/layout/PaintInvalidationState.cpp View 1 2 3 2 chunks +5 lines, -2 lines 0 comments Download

Messages

Total messages: 19 (3 generated)
Xianzhu
5 years, 6 months ago (2015-06-25 21:36:34 UTC) #2
Xianzhu
ping...
5 years, 6 months ago (2015-06-26 16:11:04 UTC) #3
chrishtr
https://codereview.chromium.org/1209133002/diff/1/Source/core/layout/LayoutPart.cpp File Source/core/layout/LayoutPart.cpp (right): https://codereview.chromium.org/1209133002/diff/1/Source/core/layout/LayoutPart.cpp#newcode338 Source/core/layout/LayoutPart.cpp:338: if (!childLayoutView->isPaintInvalidationContainer()) { Why can't you just pass down ...
5 years, 6 months ago (2015-06-26 23:32:47 UTC) #4
Xianzhu
https://codereview.chromium.org/1209133002/diff/1/Source/core/layout/LayoutPart.cpp File Source/core/layout/LayoutPart.cpp (right): https://codereview.chromium.org/1209133002/diff/1/Source/core/layout/LayoutPart.cpp#newcode338 Source/core/layout/LayoutPart.cpp:338: if (!childLayoutView->isPaintInvalidationContainer()) { On 2015/06/26 23:32:46, chrishtr wrote: > ...
5 years, 6 months ago (2015-06-27 00:17:15 UTC) #5
chrishtr
https://codereview.chromium.org/1209133002/diff/1/Source/core/layout/LayoutPart.cpp File Source/core/layout/LayoutPart.cpp (right): https://codereview.chromium.org/1209133002/diff/1/Source/core/layout/LayoutPart.cpp#newcode338 Source/core/layout/LayoutPart.cpp:338: if (!childLayoutView->isPaintInvalidationContainer()) { On 2015/06/27 at 00:17:15, Xianzhu wrote: ...
5 years, 5 months ago (2015-06-29 17:42:28 UTC) #6
Xianzhu
On 2015/06/29 17:42:28, chrishtr wrote: > https://codereview.chromium.org/1209133002/diff/1/Source/core/layout/LayoutPart.cpp > File Source/core/layout/LayoutPart.cpp (right): > > https://codereview.chromium.org/1209133002/diff/1/Source/core/layout/LayoutPart.cpp#newcode338 > ...
5 years, 5 months ago (2015-06-29 22:58:09 UTC) #7
chrishtr
https://codereview.chromium.org/1209133002/diff/20001/Source/core/frame/FrameView.cpp File Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/1209133002/diff/20001/Source/core/frame/FrameView.cpp#newcode1105 Source/core/frame/FrameView.cpp:1105: void FrameView::invalidateTreeIfNeeded(PaintInvalidationState& paintInvalidationState) Do you need to clean out ...
5 years, 5 months ago (2015-06-29 23:32:22 UTC) #8
Xianzhu
https://codereview.chromium.org/1209133002/diff/20001/Source/core/frame/FrameView.cpp File Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/1209133002/diff/20001/Source/core/frame/FrameView.cpp#newcode1105 Source/core/frame/FrameView.cpp:1105: void FrameView::invalidateTreeIfNeeded(PaintInvalidationState& paintInvalidationState) On 2015/06/29 23:32:22, chrishtr wrote: > ...
5 years, 5 months ago (2015-06-30 00:02:13 UTC) #9
Xianzhu
ping...
5 years, 5 months ago (2015-06-30 21:53:27 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1209133002/100001
5 years, 5 months ago (2015-07-01 19:52:43 UTC) #12
Xianzhu
Chris, could you take another look at this CL? Thanks.
5 years, 5 months ago (2015-07-01 19:53:06 UTC) #13
chrishtr
https://codereview.chromium.org/1209133002/diff/100001/Source/core/frame/FrameView.h File Source/core/frame/FrameView.h (right): https://codereview.chromium.org/1209133002/diff/100001/Source/core/frame/FrameView.h#newcode602 Source/core/frame/FrameView.h:602: friend class LayoutPart; // For invalidateTreeIfNeeded. We don't do ...
5 years, 5 months ago (2015-07-01 19:56:51 UTC) #14
Xianzhu
https://codereview.chromium.org/1209133002/diff/100001/Source/core/frame/FrameView.h File Source/core/frame/FrameView.h (right): https://codereview.chromium.org/1209133002/diff/100001/Source/core/frame/FrameView.h#newcode602 Source/core/frame/FrameView.h:602: friend class LayoutPart; // For invalidateTreeIfNeeded. On 2015/07/01 19:56:51, ...
5 years, 5 months ago (2015-07-01 20:10:46 UTC) #15
chrishtr
lgtm
5 years, 5 months ago (2015-07-01 21:11:53 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1209133002/100002
5 years, 5 months ago (2015-07-01 21:12:09 UTC) #18
commit-bot: I haz the power
5 years, 5 months ago (2015-07-01 21:30:33 UTC) #19
Message was sent while issue was closed.
Committed patchset #7 (id:100002) as
https://src.chromium.org/viewvc/blink?view=rev&revision=198169

Powered by Google App Engine
This is Rietveld 408576698