DescriptionFixed position layer counter-scroll with main thread scroll offset fractional part
Main thread can scroll with non-integral scroll offset, but Blink currently
only handles integral part of the scroll offset. For example, if main thread
scrolls by 10.5, Blink tells CC that the scroll offset is 10 (currently truncated
inside Blink) and Blink also sets fixed-position layer's position at 10.
This CL makes the non-integral scroll offset works correctly in this case:
1. Blink can tell CC the non-integral scroll offset 10.5 (truncation inside Blink
will be removed after this CL).
2. Blink sets fixed-position layer at 10.
3. CC tracks the fractional part of the scroll offset 0.5 and applied it when
computing scroll compensation for fixed-position layer during drawing.
BUG=414283
Committed: https://crrev.com/2c78036b520cbb4ab8bf7e090208bbbe22f43cba
Cr-Commit-Position: refs/heads/master@{#313783}
Patch Set 1 #Patch Set 2 : #Patch Set 3 : ready for review #
Total comments: 8
Patch Set 4 : add SetScrollOffsetFractionalPart() #Patch Set 5 : resubmit #
Total comments: 2
Patch Set 6 : address comments #Patch Set 7 : fix unittests #
Messages
Total messages: 14 (3 generated)
|