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

Unified Diff: client/html/generated/html/frog/Element.dart

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/html/generated/html/frog/Element.dart
diff --git a/client/html/generated/html/frog/Element.dart b/client/html/generated/html/frog/Element.dart
index a0adcd854e8685053b7c81c33c9d256091a620c4..6a0352b506fb7c47334bf5448b9c758043c0d4f4 100644
--- a/client/html/generated/html/frog/Element.dart
+++ b/client/html/generated/html/frog/Element.dart
@@ -533,9 +533,10 @@ class _ElementImpl extends _NodeImpl implements Element native "*Element" {
}
Future<CSSStyleDeclaration> getComputedStyle(String pseudoElement) {
- return _createMeasurementFuture(() =>
- window._getComputedStyle(this, pseudoElement),
- new Completer<CSSStyleDeclaration>());
+ return _createMeasurementFuture(() {
+ final _WindowImpl win = window;
+ return win._getComputedStyle(this, pseudoElement);
+ }, new Completer<CSSStyleDeclaration>());
}
_ElementEventsImpl get on() =>

Powered by Google App Engine
This is Rietveld 408576698