Index: third_party/WebKit/Source/core/input/ScrollManager.cpp |
diff --git a/third_party/WebKit/Source/core/input/ScrollManager.cpp b/third_party/WebKit/Source/core/input/ScrollManager.cpp |
index ec6c58ab46b0aeff70daf543c4fe97ad78bc7aff..0c7f1f9dc95dacafc45f2b83527554d083415fe2 100644 |
--- a/third_party/WebKit/Source/core/input/ScrollManager.cpp |
+++ b/third_party/WebKit/Source/core/input/ScrollManager.cpp |
@@ -93,6 +93,9 @@ static bool CanPropagate(const ScrollState& scroll_state, |
// scroll should be propagated from this node given its relevant* |
// ScrollBoundaryBehavior value. * relevant here depends on the dominant |
// axis of scroll gesture. |
+ // We ignore the scroll-boundary-behavior if the element is not scrollable. |
+ if (!element.GetLayoutBox()->GetScrollableArea()) |
+ return true; |
bool x_dominant = |
std::abs(scroll_state.deltaXHint()) > std::abs(scroll_state.deltaYHint()); |
return (x_dominant && element.GetComputedStyle()->ScrollBoundaryBehaviorX() == |