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

Unified Diff: ui/events/event.h

Issue 2648583003: Handle floating point coordinates from ozone to exosphere (Closed)
Patch Set: Handle floating point coordinates from ozone to exosphere Created 3 years, 11 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: ui/events/event.h
diff --git a/ui/events/event.h b/ui/events/event.h
index 20e02626b872b087633488bf4e2e0d8c17e35cd5..816e6b636c9015290dad0e9e7a10fadf84cc0e27 100644
--- a/ui/events/event.h
+++ b/ui/events/event.h
@@ -368,10 +368,7 @@ class EVENTS_EXPORT LocatedEvent : public Event {
template <class T> void ConvertLocationToTarget(T* source, T* target) {
if (!target || target == source)
return;
- gfx::Point offset = gfx::ToFlooredPoint(location_);
- T::ConvertPointToTarget(source, target, &offset);
- gfx::Vector2d diff = gfx::ToFlooredPoint(location_) - offset;
- location_= location_ - diff;
+ T::ConvertPointToTargetF(source, target, &location_);
}
protected:
« ui/aura/window.cc ('K') | « ui/compositor/layer.cc ('k') | ui/events/event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698