Index: Source/core/dom/Element.cpp |
diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp |
index c527968c90a0ff30aaf1afad20893028d89b55d5..1bbe35eb0a09216d8e0abd17eeba849e430ea665 100644 |
--- a/Source/core/dom/Element.cpp |
+++ b/Source/core/dom/Element.cpp |
@@ -515,7 +515,7 @@ void Element::applyScroll(ScrollState& scrollState) |
// Handle the documentElement separately, as it scrolls the FrameView. |
if (this == document().documentElement()) { |
FloatSize delta(deltaX, deltaY); |
- if (document().frame()->applyScrollDelta(delta, scrollState.isBeginning())) { |
+ if (document().frame()->applyScrollDelta(delta, scrollState.isBeginning()).didScroll()) { |
scrolled = true; |
scrollState.consumeDeltaNative(scrollState.deltaX(), scrollState.deltaY()); |
} |
@@ -525,12 +525,12 @@ void Element::applyScroll(ScrollState& scrollState) |
LayoutBox* curBox = layoutObject()->enclosingBox(); |
// FIXME: Native scrollers should only consume the scroll they |
// apply. See crbug.com/457765. |
- if (deltaX && curBox->scroll(ScrollLeft, ScrollByPrecisePixel, deltaX)) { |
+ if (deltaX && curBox->scroll(ScrollLeft, ScrollByPrecisePixel, deltaX).didScroll) { |
scrollState.consumeDeltaNative(scrollState.deltaX(), 0); |
scrolled = true; |
} |
- if (deltaY && curBox->scroll(ScrollUp, ScrollByPrecisePixel, deltaY)) { |
+ if (deltaY && curBox->scroll(ScrollUp, ScrollByPrecisePixel, deltaY).didScroll) { |
scrollState.consumeDeltaNative(0, scrollState.deltaY()); |
scrolled = true; |
} |