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

Unified Diff: sky/engine/core/dom/TreeScope.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/dom/Touch.cpp ('k') | sky/engine/core/events/MouseRelatedEvent.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/dom/TreeScope.cpp
diff --git a/sky/engine/core/dom/TreeScope.cpp b/sky/engine/core/dom/TreeScope.cpp
index 1093c2756f7f22d39daf0822744d6e390ce6d8ca..c34be1567dbb97e17cf277123c60cc4cb459b30d 100644
--- a/sky/engine/core/dom/TreeScope.cpp
+++ b/sky/engine/core/dom/TreeScope.cpp
@@ -198,9 +198,7 @@ HitTestResult hitTestInDocument(const Document* document, int x, int y)
if (!frameView)
return HitTestResult();
- float scaleFactor = frame->pageZoomFactor();
- IntPoint point = roundedIntPoint(FloatPoint(x * scaleFactor, y * scaleFactor));
-
+ IntPoint point(x, y);
if (!frameView->visibleContentRect().contains(point))
return HitTestResult();
« no previous file with comments | « sky/engine/core/dom/Touch.cpp ('k') | sky/engine/core/events/MouseRelatedEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698