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

Unified Diff: ui/base/events/event.cc

Issue 12423007: Short term workaround to deal with calculation error caused by inverted matrix. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix argument order Created 7 years, 9 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
« no previous file with comments | « ui/aura/test/event_generator.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/events/event.cc
diff --git a/ui/base/events/event.cc b/ui/base/events/event.cc
index dd0cb479a950a89a7ca149af1561ec8ef1b55371..288eab9de0b75236a9db82cc4846596d7343d183 100644
--- a/ui/base/events/event.cc
+++ b/ui/base/events/event.cc
@@ -274,8 +274,7 @@ void LocatedEvent::UpdateForRootTransform(
root_transform.TransformPointReverse(p);
// TODO(oshima): Translating a point using reversed matrix can
// results in small error like 0 -> -0.01, whose floored value
- // is -1 instead of 0. Investigate the best way to handle this,
- // instead of just rounding it.
+ // is -1 instead of 0. crbug.com/222483.
root_location_ = location_ = gfx::ToFlooredPoint(p.AsPointF());
}
« no previous file with comments | « ui/aura/test/event_generator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698