| Index: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
|
| diff --git a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
|
| index 406259a84e93d68dfc6815971a259fec525d3646..460018a1d322f27c284726cf8fc7541c8e39a156 100644
|
| --- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
|
| @@ -602,14 +602,15 @@ bool WebLocalFrameImpl::isFocused() const {
|
|
|
| WebSize WebLocalFrameImpl::scrollOffset() const {
|
| if (ScrollableArea* scrollableArea = layoutViewportScrollableArea())
|
| - return toIntSize(scrollableArea->scrollPosition());
|
| + return scrollableArea->scrollOffsetInt();
|
| return WebSize();
|
| }
|
|
|
| void WebLocalFrameImpl::setScrollOffset(const WebSize& offset) {
|
| - if (ScrollableArea* scrollableArea = layoutViewportScrollableArea())
|
| - scrollableArea->setScrollPosition(IntPoint(offset.width, offset.height),
|
| - ProgrammaticScroll);
|
| + if (ScrollableArea* scrollableArea = layoutViewportScrollableArea()) {
|
| + scrollableArea->setScrollOffset(ScrollOffset(offset.width, offset.height),
|
| + ProgrammaticScroll);
|
| + }
|
| }
|
|
|
| WebSize WebLocalFrameImpl::contentsSize() const {
|
|
|