OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 // TODO(jacobr): use _Lists.dart to remove some of the duplicated | 5 // TODO(jacobr): use _Lists.dart to remove some of the duplicated |
6 // functionality. | 6 // functionality. |
7 class _ChildrenElementList implements ElementList { | 7 class _ChildrenElementList implements ElementList { |
8 // Raw Element. | 8 // Raw Element. |
9 final _ElementImpl _element; | 9 final _ElementImpl _element; |
10 final _HTMLCollectionImpl _childElements; | 10 final _HTMLCollectionImpl _childElements; |
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
526 () => new _ElementRectImpl(this), | 526 () => new _ElementRectImpl(this), |
527 new Completer<ElementRect>()); | 527 new Completer<ElementRect>()); |
528 } | 528 } |
529 | 529 |
530 Future<CSSStyleDeclaration> get computedStyle() { | 530 Future<CSSStyleDeclaration> get computedStyle() { |
531 // TODO(jacobr): last param should be null, see b/5045788 | 531 // TODO(jacobr): last param should be null, see b/5045788 |
532 return getComputedStyle(''); | 532 return getComputedStyle(''); |
533 } | 533 } |
534 | 534 |
535 Future<CSSStyleDeclaration> getComputedStyle(String pseudoElement) { | 535 Future<CSSStyleDeclaration> getComputedStyle(String pseudoElement) { |
536 return _createMeasurementFuture(() => | 536 return _createMeasurementFuture( |
537 window._getComputedStyle(this, pseudoElement), | 537 () => _window._getComputedStyle(this, pseudoElement), |
538 new Completer<CSSStyleDeclaration>()); | 538 new Completer<CSSStyleDeclaration>()); |
539 } | 539 } |
540 $!MEMBERS | 540 $!MEMBERS |
541 } | 541 } |
OLD | NEW |