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 |
} |