Index: cc/layers/layer_impl.cc |
diff --git a/cc/layers/layer_impl.cc b/cc/layers/layer_impl.cc |
index 6dfec0e7d71c2069e3666f34d1371dbd275128fc..83e9643edd23d97e6e5e691be88fa2b917ba75c3 100644 |
--- a/cc/layers/layer_impl.cc |
+++ b/cc/layers/layer_impl.cc |
@@ -383,6 +383,11 @@ void LayerImpl::SetScrollClipLayer(int scroll_clip_layer_id) { |
scroll_clip_layer_ = layer_tree_impl()->LayerById(scroll_clip_layer_id); |
} |
+bool LayerImpl::user_scrollable(ScrollbarOrientation orientation) const { |
+ return (orientation == HORIZONTAL) ? user_scrollable_horizontal_ |
+ : user_scrollable_vertical_; |
+} |
+ |
void LayerImpl::ApplySentScrollDeltasFromAbortedCommit() { |
// Pending tree never has sent scroll deltas |
DCHECK(layer_tree_impl()->IsActiveTree()); |