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

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

Issue 11367040: Removing Element.rect. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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_DocumentFragment.darttemplate
diff --git a/lib/html/templates/html/impl/impl_DocumentFragment.darttemplate b/lib/html/templates/html/impl/impl_DocumentFragment.darttemplate
index a916bbf5a3665e67fc25bcdbd9c1408297621164..c6b0eebddbfab8b2cac81b23375d9d62a5a3d421 100644
--- a/lib/html/templates/html/impl/impl_DocumentFragment.darttemplate
+++ b/lib/html/templates/html/impl/impl_DocumentFragment.darttemplate
@@ -106,16 +106,6 @@ Future<CSSStyleDeclaration> _emptyStyleFuture() {
new Completer<CSSStyleDeclaration>());
}
-class EmptyElementRect implements ElementRect {
- final ClientRect client = const _SimpleClientRect(0, 0, 0, 0);
- final ClientRect offset = const _SimpleClientRect(0, 0, 0, 0);
- final ClientRect scroll = const _SimpleClientRect(0, 0, 0, 0);
- final ClientRect bounding = const _SimpleClientRect(0, 0, 0, 0);
- final List<ClientRect> clientRects = const <ClientRect>[];
-
- const EmptyElementRect();
-}
-
class _FrozenCSSClassSet extends _CssClassSet {
_FrozenCSSClassSet() : super(null);
@@ -208,11 +198,6 @@ class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
this.insertAdjacentHTML('beforeend', text);
}
- Future<ElementRect> get rect {
- return _createMeasurementFuture(() => const EmptyElementRect(),
- new Completer<ElementRect>());
- }
-
// If we can come up with a semi-reasonable default value for an Element
// getter, we'll use it. In general, these return the same values as an
// element that has no parent.

Powered by Google App Engine
This is Rietveld 408576698