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

Unified Diff: tools/dom/templates/html/impl/impl_Element.darttemplate

Issue 12605003: Converting Element.client*, offset* and Screen.avail* over to Rects (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 | « tools/dom/scripts/htmlrenamer.py ('k') | tools/dom/templates/html/impl/impl_Screen.darttemplate » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/templates/html/impl/impl_Element.darttemplate
diff --git a/tools/dom/templates/html/impl/impl_Element.darttemplate b/tools/dom/templates/html/impl/impl_Element.darttemplate
index 8dbf0e64f9c6b072bf352d2dcd633cd3919662c5..3556d5bbcbd5e8612decf3547069fd8032015208 100644
--- a/tools/dom/templates/html/impl/impl_Element.darttemplate
+++ b/tools/dom/templates/html/impl/impl_Element.darttemplate
@@ -731,6 +731,38 @@ $(ANNOTATIONS)abstract class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
return window.$dom_getComputedStyle(this, pseudoElement);
}
+ @deprecated
+ int get clientHeight => client.height;
+ @deprecated
+ int get clientLeft => client.left;
+ @deprecated
+ int get clientTop => client.top;
+ @deprecated
+ int get clientWidth => client.width;
+
+ @DomName('Element.clientHeight')
+ @DomName('Element.clientLeft')
+ @DomName('Element.clientTop')
+ @DomName('Element.clientWidth')
+ Rect get client => new Rect($dom_clientLeft, $dom_clientTop, $dom_clientWidth,
+ $dom_clientHeight);
+
+ @deprecated
+ int get offsetHeight => offset.height;
+ @deprecated
+ int get offsetLeft => offset.left;
+ @deprecated
+ int get offsetTop => offset.top;
+ @deprecated
+ int get offsetWidth => offset.width;
+
+ @DomName('Element.offsetHeight')
+ @DomName('Element.offsetLeft')
+ @DomName('Element.offsetTop')
+ @DomName('Element.offsetWidth')
+ Rect get offset => new Rect($dom_offsetLeft, $dom_offsetTop, $dom_offsetWidth,
+ $dom_offsetHeight);
+
/**
* Adds the specified element to after the last child of this element.
*/
« no previous file with comments | « tools/dom/scripts/htmlrenamer.py ('k') | tools/dom/templates/html/impl/impl_Screen.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698