Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(688)

Unified Diff: third_party/WebKit/Source/core/loader/HistoryItem.cpp

Issue 2387883002: Use float for scroll offset. (Closed)
Patch Set: Fix README.md Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/loader/HistoryItem.h ('k') | third_party/WebKit/Source/core/page/Page.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/loader/HistoryItem.cpp
diff --git a/third_party/WebKit/Source/core/loader/HistoryItem.cpp b/third_party/WebKit/Source/core/loader/HistoryItem.cpp
index cefdb0612097589128db65592d701100aabcc2e7..ce735d44db6a7891f1bd8f1c4f8df88f352b6c05 100644
--- a/third_party/WebKit/Source/core/loader/HistoryItem.cpp
+++ b/third_party/WebKit/Source/core/loader/HistoryItem.cpp
@@ -85,20 +85,20 @@ void HistoryItem::setTarget(const String& target) {
m_target = target;
}
-const FloatPoint& HistoryItem::visualViewportScrollPoint() const {
- return m_visualViewportScrollPoint;
+const ScrollOffset& HistoryItem::visualViewportScrollOffset() const {
+ return m_visualViewportScrollOffset;
}
-void HistoryItem::setVisualViewportScrollPoint(const FloatPoint& point) {
- m_visualViewportScrollPoint = point;
+void HistoryItem::setVisualViewportScrollOffset(const ScrollOffset& offset) {
+ m_visualViewportScrollOffset = offset;
}
-const IntPoint& HistoryItem::scrollPoint() const {
- return m_scrollPoint;
+const ScrollOffset& HistoryItem::scrollOffset() const {
+ return m_scrollOffset;
}
-void HistoryItem::setScrollPoint(const IntPoint& point) {
- m_scrollPoint = point;
+void HistoryItem::setScrollOffset(const ScrollOffset& offset) {
+ m_scrollOffset = offset;
}
float HistoryItem::pageScaleFactor() const {
« no previous file with comments | « third_party/WebKit/Source/core/loader/HistoryItem.h ('k') | third_party/WebKit/Source/core/page/Page.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698