[ScrollTimeline] Fix a clusterfuzz bug due to updating the wrong object
cc::WorkletAnimation has both scroll_timeline_ and animation_timeline_. When a worklet animation updates its ScrollTimeline, it is the scroll_timeline_ that should be updated. However, the other timeline gets updated due to function inheritance. This will be fixed after crbug.com/1023508. Until then we should apply a temporary fix. This patch allows WorkletAnimation to override the base function to update the scroll_timeline_ correctly. Bug: 1045812 Change-Id: I7e83e7930c4d236e88198ef645c81db8f4041555 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2020573Reviewed-by:Stephen McGruer <smcgruer@chromium.org> Commit-Queue: Yi Gu <yigu@chromium.org> Cr-Commit-Position: refs/heads/master@{#735413}
Showing
Please register or sign in to comment