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

Unified Diff: sky/engine/core/dom/Touch.cpp

Issue 714013002: Remove some more zoom-related code. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: merge to ToT Created 6 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 | « sky/engine/core/css/CSSImageSetValue.cpp ('k') | sky/engine/core/dom/TreeScope.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/dom/Touch.cpp
diff --git a/sky/engine/core/dom/Touch.cpp b/sky/engine/core/dom/Touch.cpp
index 68fca59e958bc37ee720b407692406c88ec597bb..2afc40dee3bdc9de0a0aab1eb51caa155e7231dd 100644
--- a/sky/engine/core/dom/Touch.cpp
+++ b/sky/engine/core/dom/Touch.cpp
@@ -43,8 +43,7 @@ Touch::Touch(LocalFrame* frame, EventTarget* target, unsigned identifier, const
, m_rotationAngle(rotationAngle)
, m_force(force)
{
- float scaleFactor = frame ? frame->pageZoomFactor() : 1.0f;
- m_absoluteLocation = roundedLayoutPoint(pagePos.scaledBy(scaleFactor));
+ m_absoluteLocation = roundedLayoutPoint(pagePos);
}
Touch::Touch(EventTarget* target, unsigned identifier, const FloatPoint& clientPos, const FloatPoint& screenPos, const FloatPoint& pagePos, const FloatSize& radius, float rotationAngle, float force, LayoutPoint absoluteLocation)
« no previous file with comments | « sky/engine/core/css/CSSImageSetValue.cpp ('k') | sky/engine/core/dom/TreeScope.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698