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

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: Added backward compatibility, tests 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
Index: Source/core/loader/HistoryItem.cpp
diff --git a/Source/core/loader/HistoryItem.cpp b/Source/core/loader/HistoryItem.cpp
index 179f361344d7286ab80f115d8c57ff448713ac46..29ac153f851c68f0ac8cd74a56a717e52df044f6 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;
@@ -118,6 +128,8 @@ void HistoryItem::clearScrollPoint()
{
m_scrollPoint.setX(0);
eseidel 2014/05/08 18:58:02 m_scrollPoint = IntPoint(); m_pinchViewportScrollP
bokan 2014/05/08 19:27:47 Done. (Though the latter is a FloatPoint)
m_scrollPoint.setY(0);
+ m_pinchViewportScrollPoint.setX(0);
+ m_pinchViewportScrollPoint.setY(0);
}
float HistoryItem::pageScaleFactor() const

Powered by Google App Engine
This is Rietveld 408576698