| Index: cc/trees/layer_tree_host_impl.cc
|
| diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
|
| index dd3c6299aaa0ac3966389b1b49fc9ed2bfd3e2f3..4320f2ba74164cf496e6344e0a2d08ccd7d41459 100644
|
| --- a/cc/trees/layer_tree_host_impl.cc
|
| +++ b/cc/trees/layer_tree_host_impl.cc
|
| @@ -2557,8 +2557,7 @@ LayerImpl* LayerTreeHostImpl::FindScrollLayerForDeviceViewportPoint(
|
| LayerImpl* potentially_scrolling_layer_impl = NULL;
|
| if (layer_impl) {
|
| ScrollNode* scroll_node = scroll_tree.Node(layer_impl->scroll_tree_index());
|
| - for (; scroll_tree.parent(scroll_node);
|
| - scroll_node = scroll_tree.parent(scroll_node)) {
|
| + for (; scroll_node; scroll_node = scroll_tree.parent(scroll_node)) {
|
| // The content layer can also block attempts to scroll outside the main
|
| // thread.
|
| ScrollStatus status =
|
|
|