Chromium Code Reviews| Index: lib/html/scripts/systemhtml.py |
| diff --git a/lib/html/scripts/systemhtml.py b/lib/html/scripts/systemhtml.py |
| index cfd925804b04375d27541014fbbe2d3270c4a32b..7fe8f9f499ee2ff689824b784df34a73f75fd3a2 100644 |
| --- a/lib/html/scripts/systemhtml.py |
| +++ b/lib/html/scripts/systemhtml.py |
| @@ -500,6 +500,9 @@ class Dart2JSBackend(BaseGenerator): |
| pass |
| elif IsPureInterface(supertype): |
| pass |
| + elif supertype == 'NodeList': |
| + # Special case as NodeList gets converted to List<Node>. |
|
Emily Fortuna
2012/10/03 00:46:21
These lines shouldn't be necessary. You added Node
|
| + base = '_NodeListImpl' |
| else: |
| base = self._ImplClassName(self._DartType(supertype)) |
| @@ -940,7 +943,8 @@ class Dart2JSBackend(BaseGenerator): |
| def _ShouldNarrowToImplementationType(self, type_name): |
| # TODO(sra): Move into the 'system' and cache the result. |
| do_not_narrow = ['DOMStringList', 'DOMStringMap', 'EventListener', |
| - 'IDBAny', 'IDBKey', 'MediaQueryListListener'] |
| + 'IDBAny', 'IDBKey', 'MediaQueryListListener', 'List<Node>', |
| + 'NodeList'] |
| if type_name in do_not_narrow: |
| return False |
| if self._database.HasInterface(type_name): |