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

Unified Diff: lib/html/templates/html/dart2js/impl_MouseEvent.darttemplate

Issue 11046025: Adding synchronous measurement methods to Element. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Re-adding mistakenly removed Element.rect API. Created 8 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: lib/html/templates/html/dart2js/impl_MouseEvent.darttemplate
diff --git a/lib/html/templates/html/dart2js/impl_MouseEvent.darttemplate b/lib/html/templates/html/dart2js/impl_MouseEvent.darttemplate
index 63fa8471819937ecc4e498e1e197902a8f5cd788..1af66662b25e7058a93496d8345c1f4cbd6e957c 100644
--- a/lib/html/templates/html/dart2js/impl_MouseEvent.darttemplate
+++ b/lib/html/templates/html/dart2js/impl_MouseEvent.darttemplate
@@ -15,7 +15,7 @@ $!MEMBERS
throw const UnsupportedOperationException(
'offsetX is only supported on elements');
}
- return this.clientX - this.target.$dom_getBoundingClientRect().left;
+ return this.clientX - this.target.getBoundingClientRect().left;
}
}
@@ -29,7 +29,7 @@ $!MEMBERS
throw const UnsupportedOperationException(
'offsetX is only supported on elements');
}
- return this.clientY - this.target.$dom_getBoundingClientRect().top;
+ return this.clientY - this.target.getBoundingClientRect().top;
}
}

Powered by Google App Engine
This is Rietveld 408576698