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 218f6c6920e75e3426e7b344a4fa906d4faf087f..9d3bfda956ff5bceffba6241a53db941238b6c85 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() == |