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

Issue 403593005: Clear scrollbar damages in time (Closed)

Created:
6 years, 5 months ago by Xianzhu
Modified:
6 years, 4 months ago
CC:
blink-layers+watch_chromium.org, blink-reviews, blink-reviews-rendering, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr., rune+blink, zoltan1
Project:
blink
Visibility:
Public.

Description

Clear scrollbar damages in time When scrollbar is invalidated during layout, the damaged area is cached so that the next invalidateTreeIfNeeded will pick up them and do real invalidation. However, when we do full view repaint we skip invalidation of scrollbar damages, but leave the damage status not cleared. Override RenderObject::clearPaintInvalidationState() and RenderObject::paintInvalidationStateIsDirty() to handle clearing of scrollbar damage status. BUG=394833 TEST=fast/repaint/vertical-overflow-parent.html TEST=fast/repaint/scrollbar-damage-and-full-viewport-repaint.html R=jchaffraix@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=179433

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 2

Patch Set 3 : Split out damage accumulation issue #

Patch Set 4 : Rebase on https://codereview.chromium.org/408273003/ #

Patch Set 5 : Independent #

Patch Set 6 : Fix compile #

Patch Set 7 : Update test #

Total comments: 2

Patch Set 8 : s/enclosingLayer/hasLayer|layer/ #

Total comments: 8

Patch Set 9 : For landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -108 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
D LayoutTests/compositing/squashing/invalidations-with-large-negative-margin-expected.txt View 1 2 3 4 5 6 1 chunk +0 lines, -17 lines 0 comments Download
M LayoutTests/fast/repaint/overflow-scroll-delete-expected.txt View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
A LayoutTests/fast/repaint/scrollbar-damage-and-full-viewport-repaint.html View 1 2 3 4 5 6 7 8 1 chunk +44 lines, -0 lines 0 comments Download
A + LayoutTests/fast/repaint/scrollbar-damage-and-full-viewport-repaint-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -3 lines 0 comments Download
D LayoutTests/platform/android/compositing/squashing/invalidations-with-large-negative-margin-expected.txt View 1 2 3 1 chunk +0 lines, -17 lines 0 comments Download
D LayoutTests/platform/android/fast/repaint/overflow-scroll-delete-expected.txt View 1 2 3 1 chunk +0 lines, -36 lines 0 comments Download
D LayoutTests/platform/android/virtual/softwarecompositing/squashing/invalidations-with-large-negative-margin-expected.txt View 1 2 3 1 chunk +0 lines, -17 lines 0 comments Download
M LayoutTests/platform/linux/fast/repaint/overflow-scroll-delete-expected.txt View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/platform/win-xp/fast/repaint/overflow-scroll-delete-expected.txt View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/rendering/RenderBox.h View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderBox.cpp View 1 2 3 4 5 6 7 8 1 chunk +24 lines, -8 lines 0 comments Download
M Source/core/rendering/RenderObject.h View 1 2 3 4 5 6 7 3 chunks +9 lines, -7 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
Xianzhu
6 years, 5 months ago (2014-07-17 22:55:36 UTC) #1
Xianzhu
This CL depends on https://codereview.chromium.org/398343003/. Will update NeedsRebaselines later.
6 years, 5 months ago (2014-07-17 22:56:43 UTC) #2
Xianzhu
This CL no longer depends on pending CLs. PTAL.
6 years, 5 months ago (2014-07-22 19:35:19 UTC) #3
Xianzhu
Split out the change of ScrollableArea. Will make another change to fix the issues in ...
6 years, 5 months ago (2014-07-22 19:47:57 UTC) #4
dsinclair
https://codereview.chromium.org/403593005/diff/20001/Source/core/rendering/RenderBox.cpp File Source/core/rendering/RenderBox.cpp (right): https://codereview.chromium.org/403593005/diff/20001/Source/core/rendering/RenderBox.cpp#newcode1575 Source/core/rendering/RenderBox.cpp:1575: if (!view()->doingFullRepaint()) { This is really confusing. I wonder ...
6 years, 5 months ago (2014-07-22 19:55:22 UTC) #5
Xianzhu
https://codereview.chromium.org/403593005/diff/20001/Source/core/rendering/RenderBox.cpp File Source/core/rendering/RenderBox.cpp (right): https://codereview.chromium.org/403593005/diff/20001/Source/core/rendering/RenderBox.cpp#newcode1575 Source/core/rendering/RenderBox.cpp:1575: if (!view()->doingFullRepaint()) { On 2014/07/22 19:55:22, dsinclair wrote: > ...
6 years, 5 months ago (2014-07-23 00:18:13 UTC) #6
dsinclair
Thanks for the changes. This seems good to me, would like to get jchaffraix@ to ...
6 years, 5 months ago (2014-07-23 03:06:34 UTC) #7
Xianzhu
On 2014/07/23 03:06:34, dsinclair wrote: > Thanks for the changes. This seems good to me, ...
6 years, 5 months ago (2014-07-23 16:39:39 UTC) #8
Xianzhu
Oh trybots don't work for this change because it depends on another pending change (https://codereview.chromium.org/408273003/).
6 years, 5 months ago (2014-07-23 16:41:20 UTC) #9
Xianzhu
The latest patch set no longer depends on https://codereview.chromium.org/408273003/.
6 years, 4 months ago (2014-08-01 17:50:57 UTC) #10
Julien - ping for review
https://codereview.chromium.org/403593005/diff/120001/Source/core/rendering/RenderBox.cpp File Source/core/rendering/RenderBox.cpp (right): https://codereview.chromium.org/403593005/diff/120001/Source/core/rendering/RenderBox.cpp#newcode1614 Source/core/rendering/RenderBox.cpp:1614: if (enclosingLayer()) { I missed this in our current ...
6 years, 4 months ago (2014-08-01 18:13:45 UTC) #11
Xianzhu
https://codereview.chromium.org/403593005/diff/120001/Source/core/rendering/RenderBox.cpp File Source/core/rendering/RenderBox.cpp (right): https://codereview.chromium.org/403593005/diff/120001/Source/core/rendering/RenderBox.cpp#newcode1614 Source/core/rendering/RenderBox.cpp:1614: if (enclosingLayer()) { On 2014/08/01 18:13:45, Julien Chaffraix - ...
6 years, 4 months ago (2014-08-01 18:20:02 UTC) #12
Julien - ping for review
lgtm https://codereview.chromium.org/403593005/diff/140001/LayoutTests/fast/repaint/scrollbar-damage-and-full-viewport-repaint.html File LayoutTests/fast/repaint/scrollbar-damage-and-full-viewport-repaint.html (right): https://codereview.chromium.org/403593005/diff/140001/LayoutTests/fast/repaint/scrollbar-damage-and-full-viewport-repaint.html#newcode39 LayoutTests/fast/repaint/scrollbar-damage-and-full-viewport-repaint.html:39: </div> Let's add a description of *what* we ...
6 years, 4 months ago (2014-08-01 19:05:02 UTC) #13
Xianzhu
All layout tests produced the same results as before changing enclosingLayer to layer. https://codereview.chromium.org/403593005/diff/140001/LayoutTests/fast/repaint/scrollbar-damage-and-full-viewport-repaint.html File ...
6 years, 4 months ago (2014-08-01 22:07:23 UTC) #14
Xianzhu
The CQ bit was checked by wangxianzhu@chromium.org
6 years, 4 months ago (2014-08-01 22:09:21 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wangxianzhu@chromium.org/403593005/160001
6 years, 4 months ago (2014-08-01 22:09:35 UTC) #16
Xianzhu
The CQ bit was unchecked by wangxianzhu@chromium.org
6 years, 4 months ago (2014-08-01 23:40:14 UTC) #17
Xianzhu
The CQ bit was checked by wangxianzhu@chromium.org
6 years, 4 months ago (2014-08-01 23:40:20 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wangxianzhu@chromium.org/403593005/160001
6 years, 4 months ago (2014-08-01 23:40:35 UTC) #19
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_blink_rel on tryserver.blink ...
6 years, 4 months ago (2014-08-02 00:58:55 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-02 01:57:20 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/20247)
6 years, 4 months ago (2014-08-02 01:57:21 UTC) #22
Xianzhu
The CQ bit was checked by wangxianzhu@chromium.org
6 years, 4 months ago (2014-08-02 02:21:22 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wangxianzhu@chromium.org/403593005/160001
6 years, 4 months ago (2014-08-02 02:22:11 UTC) #24
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_blink_rel on tryserver.blink ...
6 years, 4 months ago (2014-08-02 03:03:01 UTC) #25
Xianzhu
6 years, 4 months ago (2014-08-02 03:23:09 UTC) #26
Message was sent while issue was closed.
Committed patchset #9 manually as 179433 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698