Index: third_party/WebKit/Source/core/page/scrolling/OverscrollController.cpp |
diff --git a/third_party/WebKit/Source/core/page/scrolling/OverscrollController.cpp b/third_party/WebKit/Source/core/page/scrolling/OverscrollController.cpp |
index 696be5612a2cafbcd404a57036ab132e39c723a6..86acaa53d9b883d3e569ef46d92ab0fe2eb55efb 100644 |
--- a/third_party/WebKit/Source/core/page/scrolling/OverscrollController.cpp |
+++ b/third_party/WebKit/Source/core/page/scrolling/OverscrollController.cpp |
@@ -67,9 +67,17 @@ void OverscrollController::HandleOverscroll( |
if (delta_in_viewport != FloatSize()) { |
accumulated_root_overscroll_ += delta_in_viewport; |
- chrome_client_->DidOverscroll(delta_in_viewport, |
- accumulated_root_overscroll_, |
- position_in_viewport, velocity_in_viewport); |
+ chrome_client_->DidOverscroll( |
+ delta_in_viewport, accumulated_root_overscroll_, position_in_viewport, |
+ velocity_in_viewport, scroll_boundary_behavior_); |
+ } |
+} |
+ |
+void OverscrollController::SetScrollBoundaryBehavior( |
+ const WebScrollBoundaryBehavior& behavior) { |
+ if (behavior != scroll_boundary_behavior_) { |
+ scroll_boundary_behavior_ = behavior; |
+ chrome_client_->SetScrollBoundaryBehavior(behavior); |
} |
} |