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

Unified Diff: third_party/WebKit/Source/core/dom/Touch.cpp

Issue 2491703004: Replace roundedLayoutPoint with LayoutPoint (Closed)
Patch Set: Created 4 years, 1 month 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 | « no previous file | third_party/WebKit/Source/core/editing/EditingUtilities.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ff2e349c66776cfd15003e0f6112acf67cf925d9..8930f7e7b9b52d48c35a0b9fc298e33988417f0b 100644
--- a/third_party/WebKit/Source/core/dom/Touch.cpp
+++ b/third_party/WebKit/Source/core/dom/Touch.cpp
@@ -60,7 +60,7 @@ Touch::Touch(LocalFrame* frame,
m_force(force),
m_region(region) {
float scaleFactor = frame ? frame->pageZoomFactor() : 1.0f;
- m_absoluteLocation = roundedLayoutPoint(pagePos.scaledBy(scaleFactor));
+ m_absoluteLocation = LayoutPoint(pagePos.scaledBy(scaleFactor));
}
Touch::Touch(EventTarget* target,
@@ -95,7 +95,7 @@ Touch::Touch(LocalFrame* frame, const TouchInit& initializer)
m_force(initializer.force()),
m_region(initializer.region()) {
float scaleFactor = frame ? frame->pageZoomFactor() : 1.0f;
- m_absoluteLocation = roundedLayoutPoint(m_pagePos.scaledBy(scaleFactor));
+ m_absoluteLocation = LayoutPoint(m_pagePos.scaledBy(scaleFactor));
}
Touch* Touch::cloneWithNewTarget(EventTarget* eventTarget) const {
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/EditingUtilities.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698