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 dd000d6b750f92769bd755b287158562f30e92d7..43160b1a9f042f4eff198db14337bef658022597 100644 |
--- a/cc/trees/layer_tree_host_impl.cc |
+++ b/cc/trees/layer_tree_host_impl.cc |
@@ -2657,7 +2657,9 @@ bool LayerTreeHostImpl::ScrollVerticallyByPage(const gfx::Point& viewport_point, |
if (!layer_impl->HasScrollbar(VERTICAL)) |
continue; |
- float height = layer_impl->clip_height(); |
+ float height = layer_impl->scroll_clip_layer() |
+ ? layer_impl->scroll_clip_layer()->bounds().height() |
+ : 0; |
// These magical values match WebKit and are designed to scroll nearly the |
// entire visible content height but leave a bit of overlap. |