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

Unified Diff: tools/dom/templates/html/dart2js/impl_MouseEvent.darttemplate

Issue 25808002: Move Rectangle and Point into dart:math. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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: tools/dom/templates/html/dart2js/impl_MouseEvent.darttemplate
diff --git a/tools/dom/templates/html/dart2js/impl_MouseEvent.darttemplate b/tools/dom/templates/html/dart2js/impl_MouseEvent.darttemplate
index d48febb6e90dc77f0406739775d65c0a13a3dd99..032c8aeafc263a8386f97530cd633c9f7d9d8266 100644
--- a/tools/dom/templates/html/dart2js/impl_MouseEvent.darttemplate
+++ b/tools/dom/templates/html/dart2js/impl_MouseEvent.darttemplate
@@ -69,7 +69,8 @@ $!MEMBERS
'offsetX is only supported on elements');
}
Element target = this.target;
- return (this.client - target.getBoundingClientRect().topLeft).toInt();
+ var point = (this.client - target.getBoundingClientRect().topLeft);
+ return new Point(point.x.toInt(), point.y.toInt());
}
}

Powered by Google App Engine
This is Rietveld 408576698