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

Unified Diff: lib/html/templates/html/impl/impl_Element.darttemplate

Issue 11046025: Adding synchronous measurement methods to Element. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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/impl/impl_Element.darttemplate
diff --git a/lib/html/templates/html/impl/impl_Element.darttemplate b/lib/html/templates/html/impl/impl_Element.darttemplate
index 9a0928b7d2040a22f9819f52f8ffaea29742c029..6d2b940532333836b7273348c8e198e55f24003a 100644
--- a/lib/html/templates/html/impl/impl_Element.darttemplate
+++ b/lib/html/templates/html/impl/impl_Element.darttemplate
@@ -706,6 +706,26 @@ class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
new Completer<ElementRect>());
}
+ ClientRect get client => new _SimpleClientRect(
Jacob 2012/10/03 23:08:53 also go ahead and remove that these are rects. th
blois 2012/10/03 23:36:09 Done.
+ this.$dom_clientLeft,
+ this.$dom_clientTop,
+ this.$dom_clientWidth,
+ this.$dom_clientHeight);
+
+ ClientRect get offset => new _SimpleClientRect(
+ this.$dom_offsetLeft,
+ this.$dom_offsetTop,
+ this.$dom_offsetWidth,
+ this.$dom_offsetHeight);
+
+ ClientRect get scroll => new _SimpleClientRect(
+ this.$dom_scrollLeft,
+ this.$dom_scrollTop,
+ this.$dom_scrollWidth,
+ this.$dom_scrollHeight);
+
+ ClientRect get boundingClientRect => this.$dom_getBoundingClientRect();
+
Future<CSSStyleDeclaration> get computedStyle {
// TODO(jacobr): last param should be null, see b/5045788
return getComputedStyle('');
« no previous file with comments | « lib/html/dartium/html_dartium.dart ('k') | lib/html/templates/html/interface/interface_Element.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698