| OLD | NEW |
| 1 Sky DOM APIs | 1 Sky DOM APIs |
| 2 ============ | 2 ============ |
| 3 | 3 |
| 4 ```dart | 4 ```dart |
| 5 SKY MODULE | 5 SKY MODULE |
| 6 <!-- part of dart:sky --> | 6 <!-- part of dart:sky --> |
| 7 | 7 |
| 8 <script> | 8 <script> |
| 9 // ELEMENT TREE API | 9 // ELEMENT TREE API |
| 10 | 10 |
| (...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 _ErrorElement._create(); | 372 _ErrorElement._create(); |
| 373 | 373 |
| 374 @override | 374 @override |
| 375 Type getLayoutManager() => _ErrorElementLayoutManager; // O(1) | 375 Type getLayoutManager() => _ErrorElementLayoutManager; // O(1) |
| 376 } | 376 } |
| 377 | 377 |
| 378 class SelectorQuery { | 378 class SelectorQuery { |
| 379 external SelectorQuery(String selector); // O(F()) where F() is the complexity
of the selector | 379 external SelectorQuery(String selector); // O(F()) where F() is the complexity
of the selector |
| 380 | 380 |
| 381 external bool matches(Element element); // O(F()) | 381 external bool matches(Element element); // O(F()) |
| 382 external Element find(node root); // O(N*F())+O(M) where N is the number of de
scendants and M the average depth of the tree | 382 external Element find(Node root); // O(N*F())+O(M) where N is the number of de
scendants and M the average depth of the tree |
| 383 external List<Element> findAll(Node root); // O(N*F())+O(N*M) where N is the n
umber of descendants and M the average depth of the tree | 383 external List<Element> findAll(Node root); // O(N*F())+O(N*M) where N is the n
umber of descendants and M the average depth of the tree |
| 384 // find() and findAll() throw if the root is not one of the following: | 384 // find() and findAll() throw if the root is not one of the following: |
| 385 // - Element | 385 // - Element |
| 386 // - Fragment | 386 // - Fragment |
| 387 // - Root | 387 // - Root |
| 388 } | 388 } |
| 389 </script> | 389 </script> |
| 390 ``` | 390 ``` |
| OLD | NEW |