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

Unified Diff: third_party/WebKit/Source/core/dom/Touch.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
Index: third_party/WebKit/Source/core/dom/Touch.cpp
diff --git a/third_party/WebKit/Source/core/dom/Touch.cpp b/third_party/WebKit/Source/core/dom/Touch.cpp
index 1d206e8d7e9e32f9ebbe1974bf405559ec7273b5..ff2e349c66776cfd15003e0f6112acf67cf925d9 100644
--- a/third_party/WebKit/Source/core/dom/Touch.cpp
+++ b/third_party/WebKit/Source/core/dom/Touch.cpp
@@ -38,7 +38,7 @@ static FloatPoint contentsOffset(LocalFrame* frame) {
if (!frameView)
return FloatPoint();
float scale = 1.0f / frame->pageZoomFactor();
- return FloatPoint(frameView->scrollPosition()).scaledBy(scale);
+ return FloatPoint(frameView->scrollOffset()).scaledBy(scale);
}
Touch::Touch(LocalFrame* frame,
« no previous file with comments | « third_party/WebKit/Source/core/dom/ElementRareData.h ('k') | third_party/WebKit/Source/core/dom/TreeScope.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698