| Index: Source/core/dom/Element.cpp
|
| diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp
|
| index c25a6fe5afcad58959fe66b591d5766b5d0005e2..3928c7117a97d2483463f741412f63fb364e4bd7 100644
|
| --- a/Source/core/dom/Element.cpp
|
| +++ b/Source/core/dom/Element.cpp
|
| @@ -537,12 +537,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;
|
| }
|
|
|