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

Unified Diff: lib/html/templates/html/interface/interface_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/interface/interface_Element.darttemplate
diff --git a/lib/html/templates/html/interface/interface_Element.darttemplate b/lib/html/templates/html/interface/interface_Element.darttemplate
index 620efdb8123de46d6b3bcb6fd37a2aae397319e8..212fbc58f3fe46bb57af30efb11bee9996443cc8 100644
--- a/lib/html/templates/html/interface/interface_Element.darttemplate
+++ b/lib/html/templates/html/interface/interface_Element.darttemplate
@@ -84,11 +84,32 @@ abstract class Element implements Node, NodeSelector {
void addHTML(String html);
/**
- * @domName getClientRects, getBoundingClientRect, clientHeight, clientWidth,
- * clientTop, clientLeft, offsetHeight, offsetWidth, offsetTop, offsetLeft,
- * scrollHeight, scrollWidth, scrollTop, scrollLeft
+ * Synchronous implementation of [rect.client]
+ * If browser layout has been dirtied before this method is called then a
+ * re-layout will be forced and this may impact performance.
*/
- Future<ElementRect> get rect;
+ ClientRect get client;
+
+ /**
+ * Synchronous implementation of [rect.offsetSync]
+ * If browser layout has been dirtied before this method is called then a
+ * re-layout will be forced and this may impact performance.
+ */
+ ClientRect get offset;
+
+ /**
+ * Synchronous implementation of [rect.scroll]
+ * If browser layout has been dirtied before this method is called then a
+ * re-layout will be forced and this may impact performance.
+ */
+ ClientRect get scroll;
+
+ /**
+ * Synchronous implementation of [rect.boundingClientRect]
+ * If browser layout has been dirtied before this method is called then a
+ * re-layout will be forced and this may impact performance.
+ */
+ ClientRect get boundingClientRect;
/** @domName Window.getComputedStyle */
Future<CSSStyleDeclaration> get computedStyle;

Powered by Google App Engine
This is Rietveld 408576698