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

Issue 2655023003: Background attachment behavior update for rootlayer with root-layer-scrolls enabled (Closed)

Created:
3 years, 11 months ago by yigu
Modified:
3 years, 10 months ago
Reviewers:
flackr, *chrishtr
CC:
blink-reviews, blink-reviews-paint_chromium.org, chromium-reviews, dshwang
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

With root layer scrolling we should paint fixed background attachment into GraphicsLayer and local/scroll attachment into ScrollingContentslayer. BUG=682246 TEST=All/BoxPaintInvalidatorTest.CompositedLayoutViewResize/1; All/BoxPaintInvalidatorTest.CompositedLayoutViewGradientResize/1 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Review-Url: https://codereview.chromium.org/2655023003 Cr-Commit-Position: refs/heads/master@{#450764} Committed: https://chromium.googlesource.com/chromium/src/+/97f1bc8106b41307d0b02eae771daa5ef266ef4f

Patch Set 1 #

Total comments: 2

Patch Set 2 : Update DisplayItemClient to correctly handle visual rect #

Patch Set 3 : BoxPaintInvalidatorTest update && add a scroll recorder for scroll offset #

Total comments: 1

Patch Set 4 : address comments #

Total comments: 2

Patch Set 5 : Update condition check #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -56 lines) Patch
M third_party/WebKit/Source/core/paint/BoxPaintInvalidatorTest.cpp View 1 2 3 2 chunks +22 lines, -45 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayer.cpp View 1 2 3 4 1 chunk +9 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/paint/ViewPainter.cpp View 1 2 3 chunks +21 lines, -7 lines 0 comments Download

Messages

Total messages: 31 (19 generated)
yigu
Hi Chris, PTAL. Not sure whether this is the correct way of doing so. Thanks!
3 years, 11 months ago (2017-01-25 22:05:15 UTC) #5
flackr
For the root layer, I'm a little confused about falling back to painting the background ...
3 years, 11 months ago (2017-01-26 00:03:16 UTC) #6
chrishtr
What's the latest on this patch?
3 years, 10 months ago (2017-02-03 01:46:30 UTC) #7
yigu
On 2017/02/03 01:46:30, chrishtr wrote: > What's the latest on this patch? There is no ...
3 years, 10 months ago (2017-02-03 02:08:35 UTC) #8
yigu
Hi Chris, thanks for the investigation! I made some changes to BoxPaintInvalidatorTest based on the ...
3 years, 10 months ago (2017-02-15 02:02:38 UTC) #15
chrishtr
https://codereview.chromium.org/2655023003/diff/40001/third_party/WebKit/Source/core/paint/BoxPaintInvalidatorTest.cpp File third_party/WebKit/Source/core/paint/BoxPaintInvalidatorTest.cpp (right): https://codereview.chromium.org/2655023003/diff/40001/third_party/WebKit/Source/core/paint/BoxPaintInvalidatorTest.cpp#newcode243 third_party/WebKit/Source/core/paint/BoxPaintInvalidatorTest.cpp:243: EXPECT_EQ(PaintInvalidationBackgroundOnScrollingContentsLayer, Isn't this only for cases when --root-layer-scrolls?
3 years, 10 months ago (2017-02-15 02:08:35 UTC) #17
yigu
On 2017/02/15 02:08:35, chrishtr wrote: > https://codereview.chromium.org/2655023003/diff/40001/third_party/WebKit/Source/core/paint/BoxPaintInvalidatorTest.cpp > File third_party/WebKit/Source/core/paint/BoxPaintInvalidatorTest.cpp (right): > > https://codereview.chromium.org/2655023003/diff/40001/third_party/WebKit/Source/core/paint/BoxPaintInvalidatorTest.cpp#newcode243 > ...
3 years, 10 months ago (2017-02-15 02:18:51 UTC) #20
chrishtr
lgtm
3 years, 10 months ago (2017-02-15 02:21:46 UTC) #21
flackr
Have you tested that fixed position root backgrounds work correctly? https://codereview.chromium.org/2655023003/diff/60001/third_party/WebKit/Source/core/paint/PaintLayer.cpp File third_party/WebKit/Source/core/paint/PaintLayer.cpp (right): https://codereview.chromium.org/2655023003/diff/60001/third_party/WebKit/Source/core/paint/PaintLayer.cpp#newcode2608 ...
3 years, 10 months ago (2017-02-15 05:52:19 UTC) #24
yigu
Thanks! fixed background seems fine with this patch. The condition check has been updated. https://codereview.chromium.org/2655023003/diff/60001/third_party/WebKit/Source/core/paint/PaintLayer.cpp ...
3 years, 10 months ago (2017-02-15 16:00:38 UTC) #25
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/2655023003/80001
3 years, 10 months ago (2017-02-15 16:01:27 UTC) #28
commit-bot: I haz the power
3 years, 10 months ago (2017-02-15 19:21:47 UTC) #31
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/97f1bc8106b41307d0b02eae771d...

Powered by Google App Engine
This is Rietveld 408576698