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

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

Issue 9662010: Don't put private members in dart:html interfaces. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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
Index: client/dom/templates/html/impl/impl_Element.darttemplate
diff --git a/client/dom/templates/html/impl/impl_Element.darttemplate b/client/dom/templates/html/impl/impl_Element.darttemplate
index 57503ae205959782f811ce22310036c04e57aef2..50360ef24f2cb95aaac088b4be56ffceaa66d129 100644
--- a/client/dom/templates/html/impl/impl_Element.darttemplate
+++ b/client/dom/templates/html/impl/impl_Element.darttemplate
@@ -533,9 +533,10 @@ class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
}
Future<CSSStyleDeclaration> getComputedStyle(String pseudoElement) {
- return _createMeasurementFuture(() =>
- window._getComputedStyle(this, pseudoElement),
- new Completer<CSSStyleDeclaration>());
+ return _createMeasurementFuture(() {
+ final _WindowImpl win = window;
Jacob 2012/03/09 19:18:39 You can use a handy top level getter called _windo
nweiz 2012/03/09 20:58:57 Done.
+ return win._getComputedStyle(this, pseudoElement);
+ }, new Completer<CSSStyleDeclaration>());
}
$!MEMBERS
}

Powered by Google App Engine
This is Rietveld 408576698