Index: third_party/WebKit/Source/web/WebHistoryItem.cpp |
diff --git a/third_party/WebKit/Source/web/WebHistoryItem.cpp b/third_party/WebKit/Source/web/WebHistoryItem.cpp |
index 0a4c4024f7f84492d6e5bfdd51cd37d57b6a2d4c..5286ac4785d7b942ca73f5490c6099bc675ec51a 100644 |
--- a/third_party/WebKit/Source/web/WebHistoryItem.cpp |
+++ b/third_party/WebKit/Source/web/WebHistoryItem.cpp |
@@ -87,20 +87,22 @@ void WebHistoryItem::setTarget(const WebString& target) { |
} |
WebFloatPoint WebHistoryItem::visualViewportScrollOffset() const { |
- return m_private->visualViewportScrollPoint(); |
+ ScrollOffset offset = m_private->visualViewportScrollOffset(); |
+ return WebFloatPoint(offset.width(), offset.height()); |
} |
void WebHistoryItem::setVisualViewportScrollOffset( |
const WebFloatPoint& scrollOffset) { |
- m_private->setVisualViewportScrollPoint(scrollOffset); |
+ m_private->setVisualViewportScrollOffset(toScrollOffset(scrollOffset)); |
} |
WebPoint WebHistoryItem::scrollOffset() const { |
- return m_private->scrollPoint(); |
+ ScrollOffset offset = m_private->scrollOffset(); |
+ return WebPoint(offset.width(), offset.height()); |
} |
void WebHistoryItem::setScrollOffset(const WebPoint& scrollOffset) { |
- m_private->setScrollPoint(scrollOffset); |
+ m_private->setScrollOffset(ScrollOffset(scrollOffset.x, scrollOffset.y)); |
} |
float WebHistoryItem::pageScaleFactor() const { |