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

Unified Diff: ui/events/event.cc

Issue 25373005: Do not transform scroll event ordinal values (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/event.cc
diff --git a/ui/events/event.cc b/ui/events/event.cc
index 3b4cdce795a0d18b3ee0b424d32f6e6aa0328cd6..87ae01cee8e5ad3b8fabf7265528309f11944952 100644
--- a/ui/events/event.cc
+++ b/ui/events/event.cc
@@ -728,13 +728,6 @@ void ScrollEvent::Scale(const float factor) {
void ScrollEvent::UpdateForRootTransform(
sadrul 2013/10/01 11:17:06 You should just remove this override.
const gfx::Transform& inverted_root_transform) {
LocatedEvent::UpdateForRootTransform(inverted_root_transform);
- gfx::DecomposedTransform decomp;
- bool success = gfx::DecomposeTransform(&decomp, inverted_root_transform);
- DCHECK(success);
- if (decomp.scale[0])
- x_offset_ordinal_ *= decomp.scale[0];
- if (decomp.scale[1])
- y_offset_ordinal_ *= decomp.scale[1];
}
////////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698