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

Issue 2266103002: Repaint when background switches painting from/to scrolling contents layer. (Closed)

Created:
4 years, 4 months ago by flackr
Modified:
4 years, 3 months ago
CC:
blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Repaint when background switches painting from/to scrolling contents layer. BUG=639886 TEST=paint/invalidation/composited-overflow-local-background-removed.html CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Committed: https://crrev.com/7f4aaf6e67cb051586ab6f028bfed6411b1893a3 Cr-Commit-Position: refs/heads/master@{#414571}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Update flag and use setNeedsDisplay to dirty scrollingContentsLayer. #

Total comments: 1

Patch Set 3 : Mark scrolling contents layer no longer opaque and setNeedsRepaint and add content to test. #

Total comments: 4

Patch Set 4 : Merge with master. #

Total comments: 4

Patch Set 5 : Rename updateBackgroundPaintingLayer to updateBackgroundPaintsOntoScrollingContentsLayer. #

Patch Set 6 : Fix comparison. #

Patch Set 7 : Speculative fix for scrollbar drawing difference by compositing reference scroller. #

Patch Set 8 : Remove setNeedsRepaint #

Messages

Total messages: 39 (10 generated)
flackr
PTAL, this handles repainting when the background becomes no longer painted into the scrolling contents ...
4 years, 4 months ago (2016-08-22 18:59:10 UTC) #3
Stephen Chennney
https://codereview.chromium.org/2266103002/diff/1/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp File third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp (right): https://codereview.chromium.org/2266103002/diff/1/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp#newcode300 third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp:300: if (backgroundLayerPaintsOntoScrollingContentsLayer != m_backgroundPaintsOntoScrollingContentsLayer) You never set m_backgroundPaintsOntoScrollingContentsLayer, as ...
4 years, 4 months ago (2016-08-22 19:16:04 UTC) #4
Stephen Chennney
On 2016/08/22 19:16:04, Stephen Chennney wrote: > https://codereview.chromium.org/2266103002/diff/1/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp > File > third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp > (right): > ...
4 years, 4 months ago (2016-08-22 19:16:31 UTC) #5
flackr
https://codereview.chromium.org/2266103002/diff/1/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp File third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp (right): https://codereview.chromium.org/2266103002/diff/1/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp#newcode300 third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp:300: if (backgroundLayerPaintsOntoScrollingContentsLayer != m_backgroundPaintsOntoScrollingContentsLayer) On 2016/08/22 at 19:16:04, Stephen ...
4 years, 4 months ago (2016-08-22 19:33:25 UTC) #6
Stephen Chennney
On 2016/08/22 19:33:25, flackr wrote: > https://codereview.chromium.org/2266103002/diff/1/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp > File > third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp > (right): > > ...
4 years, 4 months ago (2016-08-22 19:51:07 UTC) #7
Stephen Chennney
Replying doesn't publish comments. How annoying. Append this to the previous comment. https://codereview.chromium.org/2266103002/diff/20001/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp File third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp ...
4 years, 4 months ago (2016-08-22 19:51:47 UTC) #8
flackr
On 2016/08/22 at 19:51:47, schenney wrote: > The comment in the code suggests that layer()->compositedLayerMapping()->setScrollingContentsNeedDisplayInRect ...
4 years, 4 months ago (2016-08-23 13:10:07 UTC) #9
flackr
ping, ideally I'd like to fix this before M54 branches or else we'll have to ...
4 years, 4 months ago (2016-08-23 18:53:53 UTC) #10
chrishtr
https://codereview.chromium.org/2266103002/diff/40001/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp File third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp (right): https://codereview.chromium.org/2266103002/diff/40001/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp#newcode306 third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp:306: if (hasScrollingLayer() && !backgroundLayerPaintsOntoScrollingContentsLayer) { This is not the ...
4 years, 4 months ago (2016-08-24 00:33:26 UTC) #12
flackr
https://codereview.chromium.org/2266103002/diff/40001/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp File third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp (right): https://codereview.chromium.org/2266103002/diff/40001/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp#newcode306 third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp:306: if (hasScrollingLayer() && !backgroundLayerPaintsOntoScrollingContentsLayer) { On 2016/08/24 at 00:33:26, ...
4 years, 4 months ago (2016-08-24 01:34:52 UTC) #13
chrishtr
On 2016/08/24 at 01:34:52, flackr wrote: > https://codereview.chromium.org/2266103002/diff/40001/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp > File third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp (right): > > https://codereview.chromium.org/2266103002/diff/40001/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp#newcode306 ...
4 years, 4 months ago (2016-08-24 16:30:47 UTC) #14
chrishtr
https://codereview.chromium.org/2266103002/diff/40001/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp File third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp (right): https://codereview.chromium.org/2266103002/diff/40001/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp#newcode300 third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp:300: if (backgroundLayerPaintsOntoScrollingContentsLayer != m_backgroundPaintsOntoScrollingContentsLayer) { What if backgroundLayerPaintsOntoScrollingContentsLayer starts ...
4 years, 4 months ago (2016-08-24 20:50:35 UTC) #15
flackr
https://codereview.chromium.org/2266103002/diff/40001/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp File third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp (right): https://codereview.chromium.org/2266103002/diff/40001/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp#newcode300 third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp:300: if (backgroundLayerPaintsOntoScrollingContentsLayer != m_backgroundPaintsOntoScrollingContentsLayer) { On 2016/08/24 at 20:50:35, ...
4 years, 4 months ago (2016-08-24 21:01:10 UTC) #16
chrishtr
https://codereview.chromium.org/2266103002/diff/60001/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp File third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp (right): https://codereview.chromium.org/2266103002/diff/60001/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp#newcode298 third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp:298: void CompositedLayerMapping::updateBackgroundPaintingLayer() updateBackgroundPaintsOntoScrollingContentsLayer https://codereview.chromium.org/2266103002/diff/60001/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp#newcode344 third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp:344: m_scrollingContentsLayer->setContentsOpaque(false); Is this technically ...
4 years, 4 months ago (2016-08-24 23:35:32 UTC) #17
flackr
https://codereview.chromium.org/2266103002/diff/60001/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp File third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp (right): https://codereview.chromium.org/2266103002/diff/60001/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp#newcode298 third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp:298: void CompositedLayerMapping::updateBackgroundPaintingLayer() On 2016/08/24 at 23:35:32, chrishtr wrote: > ...
4 years, 3 months ago (2016-08-25 15:21:52 UTC) #18
chrishtr
lgtm Ok. I thought about the invalidation, and concluded that your approach is the best ...
4 years, 3 months ago (2016-08-25 15:24:55 UTC) #19
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/2266103002/80001
4 years, 3 months ago (2016-08-25 15:25:56 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/281102)
4 years, 3 months ago (2016-08-25 16:03:17 UTC) #23
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/2266103002/120001
4 years, 3 months ago (2016-08-25 17:04:11 UTC) #26
chrishtr
Sorry, late update. I just diagnosed a related bug with carets that has the same ...
4 years, 3 months ago (2016-08-25 17:47:09 UTC) #28
chrishtr
I realized after discussing with pdr that there is an additional bug: needsRepaint is set ...
4 years, 3 months ago (2016-08-25 18:07:46 UTC) #29
pdr.
On 2016/08/25 at 18:07:46, chrishtr wrote: > I realized after discussing with pdr that there ...
4 years, 3 months ago (2016-08-25 18:15:31 UTC) #30
flackr
On 2016/08/25 at 18:15:31, pdr wrote: > On 2016/08/25 at 18:07:46, chrishtr wrote: > > ...
4 years, 3 months ago (2016-08-25 18:28:30 UTC) #31
chrishtr
On 2016/08/25 at 18:28:30, flackr wrote: > On 2016/08/25 at 18:15:31, pdr wrote: > > ...
4 years, 3 months ago (2016-08-25 18:42:24 UTC) #32
flackr
On 2016/08/25 at 18:42:24, chrishtr wrote: > On 2016/08/25 at 18:28:30, flackr wrote: > > ...
4 years, 3 months ago (2016-08-25 18:55:39 UTC) #33
chrishtr
lgtm
4 years, 3 months ago (2016-08-25 18:58:31 UTC) #35
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/2266103002/140001
4 years, 3 months ago (2016-08-25 18:59:19 UTC) #36
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 3 months ago (2016-08-25 22:55:32 UTC) #37
commit-bot: I haz the power
4 years, 3 months ago (2016-08-25 22:57:20 UTC) #39
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/7f4aaf6e67cb051586ab6f028bfed6411b1893a3
Cr-Commit-Position: refs/heads/master@{#414571}

Powered by Google App Engine
This is Rietveld 408576698