| Index: third_party/WebKit/Source/core/layout/LayoutView.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutView.cpp b/third_party/WebKit/Source/core/layout/LayoutView.cpp
|
| index 7abdf095176938fe46d1931bbb85ecd5bd0e806a..79197630409f965f51b41a6dcf65fea1472898be 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutView.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutView.cpp
|
| @@ -1035,10 +1035,16 @@ bool LayoutView::allowsOverflowClip() const
|
|
|
| ScrollResult LayoutView::scroll(ScrollGranularity granularity, const FloatSize& delta)
|
| {
|
| + // TODO(bokan): This should never get called on the main frame but it
|
| + // currently does via the Windows pan scrolling path. That should go through
|
| + // a more normalized EventHandler-like scrolling path and we should
|
| + // ASSERT(!frame()->isMainFrame()) here. All main frame scrolling should
|
| + // be handled by the ViewportScrollCallback.
|
| +
|
| if (!frameView())
|
| - return ScrollResult();
|
| + return ScrollResult(false, false, delta.width(), delta.height());
|
|
|
| - return frame()->applyScrollDelta(granularity, delta, false);
|
| + return frameView()->getScrollableArea()->userScroll(granularity, delta);
|
| }
|
|
|
| } // namespace blink
|
|
|