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

Unified Diff: client/html/src/Element.dart

Issue 9148015: Example showing alternate async measurement solution (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Final version Created 8 years, 11 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: client/html/src/Element.dart
diff --git a/client/html/src/Element.dart b/client/html/src/Element.dart
index ea5a3de313e826245c101113a4754df92a1f1ab9..7236491115dd067adcff143e0ba9b898d5bd1a6b 100644
--- a/client/html/src/Element.dart
+++ b/client/html/src/Element.dart
@@ -1,4 +1,4 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@@ -8,10 +8,6 @@ interface ElementList extends List<Element> {
// TODO(jacobr): add insertAt
}
-class DeferredElementRect {
- // TODO(jacobr)
-}
-
interface ElementEvents extends Events {
EventListenerList get abort();
EventListenerList get beforeCopy();
@@ -185,11 +181,14 @@ interface Element extends Node /*, common.NodeSelector, common.ElementTraversal
bool matchesSelector([String selectors]);
- Future<ElementRect> get rect();
+ /** Only access members when [window.inMeasurementFrame] is true. */
+ ElementRect get rect();
- Future<CSSStyleDeclaration> get computedStyle();
+ /** Only call when [window.inMeasurementFrame] is true. */
+ CSSStyleDeclaration get computedStyle();
- Future<CSSStyleDeclaration> getComputedStyle(String pseudoElement);
+ /** Only call when [window.inMeasurementFrame] is true. */
+ CSSStyleDeclaration getComputedStyle(String pseudoElement);
ElementEvents get on();

Powered by Google App Engine
This is Rietveld 408576698