Properly handle viewport-flings after a bubbling scroll
commit14ffa6bce4fe48939379ef32c304f02064efad96
authorjdduke <jdduke@chromium.org>
Sat, 6 Dec 2014 07:12:40 +0000 (5 23:12 -0800)
committerCommit bot <commit-bot@chromium.org>
Sat, 6 Dec 2014 07:13:03 +0000 (6 07:13 +0000)
treeb1bb02e0e831cd353a93c1e237af9ed62b6a2d36
parenta32bce1c81d3a418b95392a006ccb9614273438e
Properly handle viewport-flings after a bubbling scroll

A compositor-driven fling will lock to the first layer that scrolls
after the fling starts. This can often be a different scrolling layer
than was first scrolled, e.g., when a scrolling layer reaches its limit
and the user then initiates a fling.

A recent change (r304898) inadvertently prevents the fling from locking
to the viewport layer after a bubbling touch scroll. Fix this by
ensuring the scrolling layer is always set after the fling's first
scroll animation update.

BUG=439698

Review URL: https://codereview.chromium.org/776943004

Cr-Commit-Position: refs/heads/master@{#307162}
cc/trees/layer_tree_host_impl.cc
cc/trees/layer_tree_host_impl_unittest.cc