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

Issue 460883002: Non-composited scrolling div should invalidate when it has descendant paints to its backing (Closed)

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

Description

Non-composited scrolling div should invalidate when it has descendant paints to its backing This CL fixes a bug that non-composited scrolling div forgets to invalidate because the div believed all its descandants are composited, when actually some descendants paints to ancestor backing although composited. BUG=401047 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=180309

Patch Set 1 #

Patch Set 2 : remove the optimization as whole #

Patch Set 3 : Or we can do our best to live in the imperfect world... #

Total comments: 1

Patch Set 4 : added tests. fix one more bug. #

Patch Set 5 : rebaseline #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -8 lines) Patch
M LayoutTests/compositing/layer-creation/should-invoke-deferred-compositing-expected.txt View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M LayoutTests/compositing/squashing/invalidate-when-leaving-squashed-layer-expected.txt View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/compositing/squashing/squash-above-fixed-1-expected.txt View 1 2 3 4 2 chunks +0 lines, -2 lines 0 comments Download
A LayoutTests/fast/scrolling/non-composited-scrolling-repaint-local-background.html View 1 2 3 1 chunk +27 lines, -0 lines 0 comments Download
A LayoutTests/fast/scrolling/non-composited-scrolling-repaint-local-background-expected.html View 1 2 3 1 chunk +20 lines, -0 lines 0 comments Download
A LayoutTests/fast/scrolling/non-composited-scrolling-repaint-to-ancestor-backing.html View 1 2 3 1 chunk +37 lines, -0 lines 0 comments Download
A LayoutTests/fast/scrolling/non-composited-scrolling-repaint-to-ancestor-backing-expected.html View 1 2 3 1 chunk +26 lines, -0 lines 0 comments Download
M LayoutTests/virtual/softwarecompositing/squashing/invalidate-when-leaving-squashed-layer-expected.txt View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/rendering/RenderLayer.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderLayerScrollableArea.cpp View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/rendering/compositing/CompositedLayerMapping.cpp View 1 2 3 1 chunk +2 lines, -2 lines 2 comments Download

Messages

Total messages: 16 (0 generated)
trchen
Hello reviewers, this CL fixes a scrolling bug when a scrollable <div> contains both a ...
6 years, 4 months ago (2014-08-12 01:30:50 UTC) #1
abarth-chromium
Can you compute this information in one of the existing tree walks? Trying to compute ...
6 years, 4 months ago (2014-08-12 02:05:18 UTC) #2
abarth-chromium
Also, can you separate out the rename into another CL? It's adding a lot of ...
6 years, 4 months ago (2014-08-12 02:05:49 UTC) #3
trchen
Spent a few hours looking around the code. I realized that it is very difficult ...
6 years, 4 months ago (2014-08-12 23:27:51 UTC) #4
abarth-chromium
On 2014/08/12 at 23:27:51, trchen wrote: > I'm wondering how far are we from the ...
6 years, 4 months ago (2014-08-12 23:39:35 UTC) #5
trchen
On 2014/08/12 at 23:39:35, abarth wrote: > On 2014/08/12 at 23:27:51, trchen wrote: > > ...
6 years, 4 months ago (2014-08-13 00:13:54 UTC) #6
trchen
Or an alternative solution is to do the minimum effort to get known cases work... ...
6 years, 4 months ago (2014-08-13 00:23:49 UTC) #7
abarth-chromium
This looks fine, but please add some tests. https://codereview.chromium.org/460883002/diff/40001/Source/core/rendering/RenderLayerScrollableArea.cpp File Source/core/rendering/RenderLayerScrollableArea.cpp (right): https://codereview.chromium.org/460883002/diff/40001/Source/core/rendering/RenderLayerScrollableArea.cpp#newcode392 Source/core/rendering/RenderLayerScrollableArea.cpp:392: && ...
6 years, 4 months ago (2014-08-13 00:57:21 UTC) #8
trchen
On 2014/08/13 at 00:57:21, abarth wrote: > This looks fine, but please add some tests. ...
6 years, 4 months ago (2014-08-13 00:59:35 UTC) #9
trchen
Hello abarth, sorry for the delay. I was figuring out how to make layout tests ...
6 years, 4 months ago (2014-08-14 01:20:36 UTC) #10
abarth-chromium
https://codereview.chromium.org/460883002/diff/80001/Source/core/rendering/compositing/CompositedLayerMapping.cpp File Source/core/rendering/compositing/CompositedLayerMapping.cpp (right): https://codereview.chromium.org/460883002/diff/80001/Source/core/rendering/compositing/CompositedLayerMapping.cpp#newcode165 Source/core/rendering/compositing/CompositedLayerMapping.cpp:165: , m_requiresOwnBackingStoreForAncestorReasons(false) This CL seems fine to me, but ...
6 years, 4 months ago (2014-08-14 03:54:54 UTC) #11
Ian Vollick
https://codereview.chromium.org/460883002/diff/80001/Source/core/rendering/compositing/CompositedLayerMapping.cpp File Source/core/rendering/compositing/CompositedLayerMapping.cpp (right): https://codereview.chromium.org/460883002/diff/80001/Source/core/rendering/compositing/CompositedLayerMapping.cpp#newcode165 Source/core/rendering/compositing/CompositedLayerMapping.cpp:165: , m_requiresOwnBackingStoreForAncestorReasons(false) On 2014/08/14 03:54:54, abarth wrote: > This ...
6 years, 4 months ago (2014-08-14 17:16:44 UTC) #12
abarth-chromium
LGTM
6 years, 4 months ago (2014-08-14 20:45:26 UTC) #13
trchen
The CQ bit was checked by trchen@chromium.org
6 years, 4 months ago (2014-08-14 21:39:03 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/trchen@chromium.org/460883002/80001
6 years, 4 months ago (2014-08-14 21:39:46 UTC) #15
commit-bot: I haz the power
6 years, 4 months ago (2014-08-15 00:14:50 UTC) #16
Message was sent while issue was closed.
Committed patchset #5 (80001) as 180309

Powered by Google App Engine
This is Rietveld 408576698