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

Issue 1332643002: Fix fixed-background offset issue (Closed)

Created:
5 years, 3 months ago by Xianzhu
Modified:
5 years, 3 months ago
Reviewers:
chrishtr, trchen
CC:
blink-reviews, blink-reviews-paint_chromium.org, dshwang, slimming-paint-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Fix fixed-background offset issue Fixed-background under scrolled container has been broken when we enabled ScrollRecorder. Because the drawing coordinates are in the scrolled content, while fixed-background should be drawn as if it is in the viewport, we should add the accumulated scroll offset to the target rect of the fixed-background. BUG=528226 TEST=paint/overflow/fixed-background-scroll.html TEST=paint/overflow/fixed-background-scroll-window.html TEST=paint/overflow/fixed-background-scroll-in-frame.html Committed: https://crrev.com/efecb10be7c17ac2632cd86b890915d441e2da31 git-svn-id: svn://svn.chromium.org/blink/trunk@202014 bbb929c8-8fbe-4397-9dbb-9b2b20218538

Patch Set 1 #

Total comments: 6

Patch Set 2 : Local change #

Total comments: 4

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+108 lines, -3 lines) Patch
A LayoutTests/paint/overflow/fixed-background-scroll.html View 1 1 chunk +16 lines, -0 lines 0 comments Download
A LayoutTests/paint/overflow/fixed-background-scroll-expected.html View 1 1 chunk +11 lines, -0 lines 0 comments Download
A LayoutTests/paint/overflow/fixed-background-scroll-in-frame.html View 1 2 1 chunk +19 lines, -0 lines 0 comments Download
A LayoutTests/paint/overflow/fixed-background-scroll-in-frame-expected.html View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
A LayoutTests/paint/overflow/fixed-background-scroll-window.html View 1 chunk +16 lines, -0 lines 0 comments Download
A LayoutTests/paint/overflow/fixed-background-scroll-window-expected.html View 1 1 chunk +12 lines, -0 lines 0 comments Download
M Source/core/paint/BackgroundImageGeometry.cpp View 1 2 3 2 chunks +22 lines, -3 lines 0 comments Download

Messages

Total messages: 20 (5 generated)
Xianzhu
5 years, 3 months ago (2015-09-09 01:23:52 UTC) #2
chrishtr
https://codereview.chromium.org/1332643002/diff/1/Source/core/paint/BackgroundImageGeometry.cpp File Source/core/paint/BackgroundImageGeometry.cpp (right): https://codereview.chromium.org/1332643002/diff/1/Source/core/paint/BackgroundImageGeometry.cpp#newcode235 Source/core/paint/BackgroundImageGeometry.cpp:235: IntPoint absoluteContainerOffset = roundedIntPoint(paintContainer->localToAbsolute(FloatPoint())); localToAbsolute includes scroll offsets...why isn't ...
5 years, 3 months ago (2015-09-09 17:05:41 UTC) #3
Xianzhu
https://codereview.chromium.org/1332643002/diff/1/Source/core/paint/BackgroundImageGeometry.cpp File Source/core/paint/BackgroundImageGeometry.cpp (right): https://codereview.chromium.org/1332643002/diff/1/Source/core/paint/BackgroundImageGeometry.cpp#newcode235 Source/core/paint/BackgroundImageGeometry.cpp:235: IntPoint absoluteContainerOffset = roundedIntPoint(paintContainer->localToAbsolute(FloatPoint())); On 2015/09/09 17:05:41, chrishtr wrote: ...
5 years, 3 months ago (2015-09-09 17:09:09 UTC) #4
chrishtr
https://codereview.chromium.org/1332643002/diff/1/Source/core/paint/BackgroundImageGeometry.cpp File Source/core/paint/BackgroundImageGeometry.cpp (right): https://codereview.chromium.org/1332643002/diff/1/Source/core/paint/BackgroundImageGeometry.cpp#newcode235 Source/core/paint/BackgroundImageGeometry.cpp:235: IntPoint absoluteContainerOffset = roundedIntPoint(paintContainer->localToAbsolute(FloatPoint())); On 2015/09/09 at 17:09:09, Xianzhu ...
5 years, 3 months ago (2015-09-09 17:29:16 UTC) #5
Xianzhu
https://codereview.chromium.org/1332643002/diff/1/Source/core/paint/BackgroundImageGeometry.cpp File Source/core/paint/BackgroundImageGeometry.cpp (right): https://codereview.chromium.org/1332643002/diff/1/Source/core/paint/BackgroundImageGeometry.cpp#newcode235 Source/core/paint/BackgroundImageGeometry.cpp:235: IntPoint absoluteContainerOffset = roundedIntPoint(paintContainer->localToAbsolute(FloatPoint())); On 2015/09/09 17:29:16, chrishtr wrote: ...
5 years, 3 months ago (2015-09-09 20:40:03 UTC) #6
chrishtr
https://codereview.chromium.org/1332643002/diff/1/Source/core/paint/BackgroundImageGeometry.cpp File Source/core/paint/BackgroundImageGeometry.cpp (right): https://codereview.chromium.org/1332643002/diff/1/Source/core/paint/BackgroundImageGeometry.cpp#newcode235 Source/core/paint/BackgroundImageGeometry.cpp:235: IntPoint absoluteContainerOffset = roundedIntPoint(paintContainer->localToAbsolute(FloatPoint())); On 2015/09/09 at 20:40:03, Xianzhu ...
5 years, 3 months ago (2015-09-09 20:48:15 UTC) #7
Xianzhu
https://codereview.chromium.org/1332643002/diff/1/Source/core/paint/BackgroundImageGeometry.cpp File Source/core/paint/BackgroundImageGeometry.cpp (right): https://codereview.chromium.org/1332643002/diff/1/Source/core/paint/BackgroundImageGeometry.cpp#newcode235 Source/core/paint/BackgroundImageGeometry.cpp:235: IntPoint absoluteContainerOffset = roundedIntPoint(paintContainer->localToAbsolute(FloatPoint())); On 2015/09/09 20:48:15, chrishtr wrote: ...
5 years, 3 months ago (2015-09-09 22:04:06 UTC) #8
chrishtr
https://codereview.chromium.org/1332643002/diff/20001/Source/core/paint/BackgroundImageGeometry.cpp File Source/core/paint/BackgroundImageGeometry.cpp (right): https://codereview.chromium.org/1332643002/diff/20001/Source/core/paint/BackgroundImageGeometry.cpp#newcode246 Source/core/paint/BackgroundImageGeometry.cpp:246: viewportRect.moveBy(accumulatedScrollOffset(obj, paintContainer)); Add a TODO(trchen) to fix this for ...
5 years, 3 months ago (2015-09-09 22:07:05 UTC) #9
Xianzhu
https://codereview.chromium.org/1332643002/diff/20001/Source/core/paint/BackgroundImageGeometry.cpp File Source/core/paint/BackgroundImageGeometry.cpp (right): https://codereview.chromium.org/1332643002/diff/20001/Source/core/paint/BackgroundImageGeometry.cpp#newcode246 Source/core/paint/BackgroundImageGeometry.cpp:246: viewportRect.moveBy(accumulatedScrollOffset(obj, paintContainer)); On 2015/09/09 22:07:05, chrishtr wrote: > Add ...
5 years, 3 months ago (2015-09-09 22:40:47 UTC) #10
chrishtr
lgtm https://codereview.chromium.org/1332643002/diff/40001/Source/core/paint/BackgroundImageGeometry.cpp File Source/core/paint/BackgroundImageGeometry.cpp (right): https://codereview.chromium.org/1332643002/diff/40001/Source/core/paint/BackgroundImageGeometry.cpp#newcode246 Source/core/paint/BackgroundImageGeometry.cpp:246: // TODO(trchen): Fix this for SP phase 2. ...
5 years, 3 months ago (2015-09-09 22:46:33 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1332643002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1332643002/40001
5 years, 3 months ago (2015-09-09 22:46:46 UTC) #13
Xianzhu
https://codereview.chromium.org/1332643002/diff/40001/Source/core/paint/BackgroundImageGeometry.cpp File Source/core/paint/BackgroundImageGeometry.cpp (right): https://codereview.chromium.org/1332643002/diff/40001/Source/core/paint/BackgroundImageGeometry.cpp#newcode246 Source/core/paint/BackgroundImageGeometry.cpp:246: // TODO(trchen): Fix this for SP phase 2. crbug.com/528226. ...
5 years, 3 months ago (2015-09-09 23:39:57 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1332643002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1332643002/60001
5 years, 3 months ago (2015-09-09 23:40:11 UTC) #18
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://src.chromium.org/viewvc/blink?view=rev&revision=202014
5 years, 3 months ago (2015-09-10 01:15:13 UTC) #19
commit-bot: I haz the power
5 years, 3 months ago (2015-09-23 12:05:51 UTC) #20
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/efecb10be7c17ac2632cd86b890915d441e2da31

Powered by Google App Engine
This is Rietveld 408576698