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

Issue 889453002: Add a WebLayer:setScrollCompensationAdjustment between Blink and CC (Closed)

Created:
5 years, 10 months ago by Yufeng Shen (Slow to review)
Modified:
5 years, 10 months ago
CC:
blink-layers+watch_chromium.org, blink-reviews, dglazkov+blink, kenneth.christiansen
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Add a WebLayer::setScrollCompensationAdjustment between Blink and CC Blink can only use the integer part of the scroll offset to position elements. This CL makes Blink send the fractional part of the scroll offset to CC separately to be clear that CC needs to take special care of it e.g. compensating for fixed-position layer's position. Once Blink can fully position elements at fractional boundary, we can get rid of this call. BUG=414283 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=189381

Patch Set 1 #

Total comments: 3

Patch Set 2 : address comments #

Total comments: 2

Patch Set 3 : add comments #

Patch Set 4 : a better name ScrollCompensationAdjustment #

Patch Set 5 : add reftest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -3 lines) Patch
A LayoutTests/fast/scrolling/fractional-scroll-offset-fixed-position.html View 1 2 3 4 1 chunk +40 lines, -0 lines 0 comments Download
A LayoutTests/fast/scrolling/fractional-scroll-offset-fixed-position-expected.html View 1 2 3 4 1 chunk +32 lines, -0 lines 0 comments Download
M Source/core/page/scrolling/ScrollingCoordinator.cpp View 1 2 3 1 chunk +11 lines, -3 lines 0 comments Download
M public/platform/WebLayer.h View 1 2 3 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (4 generated)
Yufeng Shen (Slow to review)
This is to be landed after https://codereview.chromium.org/877173002/
5 years, 10 months ago (2015-01-28 22:28:50 UTC) #2
aelias_OOO_until_Jul13
https://codereview.chromium.org/889453002/diff/1/Source/core/page/scrolling/ScrollingCoordinator.cpp File Source/core/page/scrolling/ScrollingCoordinator.cpp (right): https://codereview.chromium.org/889453002/diff/1/Source/core/page/scrolling/ScrollingCoordinator.cpp#newcode405 Source/core/page/scrolling/ScrollingCoordinator.cpp:405: webLayer->setScrollPositionDouble(DoublePoint(flooredScrollPosition)); Let's send the full nonfloored position here. The ...
5 years, 10 months ago (2015-01-28 22:31:34 UTC) #3
Yufeng Shen (Slow to review)
https://codereview.chromium.org/889453002/diff/1/Source/core/page/scrolling/ScrollingCoordinator.cpp File Source/core/page/scrolling/ScrollingCoordinator.cpp (right): https://codereview.chromium.org/889453002/diff/1/Source/core/page/scrolling/ScrollingCoordinator.cpp#newcode405 Source/core/page/scrolling/ScrollingCoordinator.cpp:405: webLayer->setScrollPositionDouble(DoublePoint(flooredScrollPosition)); On 2015/01/28 22:31:34, aelias wrote: > Let's send ...
5 years, 10 months ago (2015-01-28 22:49:33 UTC) #4
aelias_OOO_until_Jul13
lgtm
5 years, 10 months ago (2015-01-28 22:54:42 UTC) #5
aelias_OOO_until_Jul13
lgtm
5 years, 10 months ago (2015-01-28 22:54:42 UTC) #6
Rick Byers
https://codereview.chromium.org/889453002/diff/20001/Source/core/page/scrolling/ScrollingCoordinator.cpp File Source/core/page/scrolling/ScrollingCoordinator.cpp (right): https://codereview.chromium.org/889453002/diff/20001/Source/core/page/scrolling/ScrollingCoordinator.cpp#newcode404 Source/core/page/scrolling/ScrollingCoordinator.cpp:404: webLayer->setScrollPositionDouble(scrollPosition); You don't want flooredScrollPosition here? If the API ...
5 years, 10 months ago (2015-01-29 20:53:13 UTC) #7
Rick Byers
https://codereview.chromium.org/889453002/diff/1/Source/core/page/scrolling/ScrollingCoordinator.cpp File Source/core/page/scrolling/ScrollingCoordinator.cpp (right): https://codereview.chromium.org/889453002/diff/1/Source/core/page/scrolling/ScrollingCoordinator.cpp#newcode405 Source/core/page/scrolling/ScrollingCoordinator.cpp:405: webLayer->setScrollPositionDouble(DoublePoint(flooredScrollPosition)); On 2015/01/28 22:49:33, Yufeng Shen wrote: > On ...
5 years, 10 months ago (2015-01-29 20:55:07 UTC) #8
aelias_OOO_until_Jul13
I guess the naming is poor. In some sense these properties are orthogonal (which is ...
5 years, 10 months ago (2015-01-29 21:25:36 UTC) #9
Rick Byers
On 2015/01/29 21:25:36, aelias wrote: > I guess the naming is poor. In some sense ...
5 years, 10 months ago (2015-01-29 21:30:36 UTC) #10
Yufeng Shen (Slow to review)
On 2015/01/29 21:30:36, Rick Byers wrote: > On 2015/01/29 21:25:36, aelias wrote: > > I ...
5 years, 10 months ago (2015-01-29 22:34:38 UTC) #11
Rick Byers
Thanks LGTM How will this code path eventually get tested? Do we need a unit ...
5 years, 10 months ago (2015-01-30 04:25:06 UTC) #12
aelias_OOO_until_Jul13
Layout reftest is probably the best way to test this. Scroll to a fractional amount ...
5 years, 10 months ago (2015-01-30 04:33:53 UTC) #13
Yufeng Shen (Slow to review)
reftest added.
5 years, 10 months ago (2015-01-30 19:47:19 UTC) #16
aelias_OOO_until_Jul13
lgtm
5 years, 10 months ago (2015-01-30 20:17:38 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/889453002/80001
5 years, 10 months ago (2015-02-03 03:10:57 UTC) #19
commit-bot: I haz the power
5 years, 10 months ago (2015-02-03 03:14:17 UTC) #20
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=189381

Powered by Google App Engine
This is Rietveld 408576698