Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 class FilteredElementList implements ElementList { | 5 class FilteredElementList implements ElementList { |
| 6 final Node _node; | 6 final Node _node; |
| 7 final NodeList _childNodes; | 7 final NodeList _childNodes; |
| 8 | 8 |
| 9 FilteredElementList(Node node): _childNodes = node.nodes, _node = node; | 9 FilteredElementList(Node node): _childNodes = node.nodes, _node = node; |
| 10 | 10 |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 99 Iterator<Element> iterator() => _filtered.iterator(); | 99 Iterator<Element> iterator() => _filtered.iterator(); |
| 100 List<Element> getRange(int start, int length) => | 100 List<Element> getRange(int start, int length) => |
| 101 _filtered.getRange(start, length); | 101 _filtered.getRange(start, length); |
| 102 int indexOf(Element element, int startIndex) => | 102 int indexOf(Element element, int startIndex) => |
| 103 _filtered.indexOf(element, startIndex); | 103 _filtered.indexOf(element, startIndex); |
| 104 int lastIndexOf(Element element, int startIndex) => | 104 int lastIndexOf(Element element, int startIndex) => |
| 105 _filtered.lastIndexOf(element, startIndex); | 105 _filtered.lastIndexOf(element, startIndex); |
| 106 Element last() => _filtered.last(); | 106 Element last() => _filtered.last(); |
| 107 } | 107 } |
| 108 | 108 |
| 109 class EmptyStyleDeclaration implements CSSStyleDeclaration { | 109 class EmptyStyleDeclaration extends CSSStyleDeclarationWrappingImplementation { |
|
Jacob
2011/10/21 17:12:23
this doesn't seem right... what will _ptr be set t
nweiz
2011/10/24 19:48:28
It shouldn't need to be set to anything. We overri
Jacob
2011/10/24 20:07:16
clever
| |
| 110 String get cssText() => ""; | 110 String get cssText() => ""; |
| 111 int get length() => 0; | 111 int get length() => 0; |
| 112 CSSRule get parentRule() => null; | 112 CSSRule get parentRule() => null; |
| 113 CSSValue getPropertyCSSValue(String propertyName) => null; | 113 CSSValue getPropertyCSSValue(String propertyName) => null; |
| 114 String getPropertyPriority(String propertyName) => ""; | 114 String getPropertyPriority(String propertyName) => ""; |
| 115 String getPropertyShorthand(String propertyName) => null; | 115 String getPropertyShorthand(String propertyName) => null; |
| 116 String getPropertyValue(String propertyName) => null; | 116 String getPropertyValue(String propertyName) => null; |
| 117 bool isPropertyImplicit(String propertyName) => false; | 117 bool isPropertyImplicit(String propertyName) => false; |
| 118 String item(int index) => ""; | 118 String item(int index) => ""; |
| 119 | 119 |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 362 void set title(String value) { | 362 void set title(String value) { |
| 363 throw new UnsupportedOperationException( | 363 throw new UnsupportedOperationException( |
| 364 "Title can't be set for document fragments."); | 364 "Title can't be set for document fragments."); |
| 365 } | 365 } |
| 366 | 366 |
| 367 void set webkitdropzone(String value) { | 367 void set webkitdropzone(String value) { |
| 368 throw new UnsupportedOperationException( | 368 throw new UnsupportedOperationException( |
| 369 "WebKit drop zone can't be set for document fragments."); | 369 "WebKit drop zone can't be set for document fragments."); |
| 370 } | 370 } |
| 371 } | 371 } |
| OLD | NEW |