Chromium Code Reviews
DescriptionAccount for scroll origin in scroll animators.
Blink and cc have different notions of scroll offset - Blink's is relative to
the scroll origin which is non-zero in RTL documents.
The CompositorScrollOffsetAnimationCurve must work entirely in cc scroll offsets
since it is handed over to cc which doesn't know about the scroll origin.
This patch teaches ScrollAnimator and ProgrammaticScrollAnimator to convert in
both directions when creating and using the curve object.
BUG=581264
Committed: https://crrev.com/0bb16600006793953292ee1e7fd8bf0a66f575dc
Cr-Commit-Position: refs/heads/master@{#379974}
Patch Set 1 #
Total comments: 2
Patch Set 2 : #Patch Set 3 : skip test on Mac #Patch Set 4 : rebase #
Total comments: 2
Patch Set 5 : super-nit #Messages
Total messages: 24 (11 generated)
|