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

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

Issue 263853008: Added pinch viewport offset to history item. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 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 | « Source/core/loader/HistoryItem.h ('k') | Source/core/page/Page.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/loader/HistoryItem.cpp
diff --git a/Source/core/loader/HistoryItem.cpp b/Source/core/loader/HistoryItem.cpp
index 11a0e2b57f953c8a5959e4f2484e47824e4757bc..2be3ae2680b5f3fcc7738ab131dfd5f5662a49f1 100644
--- a/Source/core/loader/HistoryItem.cpp
+++ b/Source/core/loader/HistoryItem.cpp
@@ -104,6 +104,16 @@ void HistoryItem::setTarget(const String& target)
m_target = target;
}
+const FloatPoint& HistoryItem::pinchViewportScrollPoint() const
+{
+ return m_pinchViewportScrollPoint;
+}
+
+void HistoryItem::setPinchViewportScrollPoint(const FloatPoint& point)
+{
+ m_pinchViewportScrollPoint = point;
+}
+
const IntPoint& HistoryItem::scrollPoint() const
{
return m_scrollPoint;
@@ -116,8 +126,8 @@ void HistoryItem::setScrollPoint(const IntPoint& point)
void HistoryItem::clearScrollPoint()
{
- m_scrollPoint.setX(0);
- m_scrollPoint.setY(0);
+ m_scrollPoint = IntPoint();
+ m_pinchViewportScrollPoint = FloatPoint();
}
float HistoryItem::pageScaleFactor() const
« no previous file with comments | « Source/core/loader/HistoryItem.h ('k') | Source/core/page/Page.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698