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

Side by Side Diff: sky/specs/elements.md

Issue 931333002: Specs: update the run loop and timer stuff to use the new model with task filters, priorities, and … (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 unified diff | Download patch
« no previous file with comments | « sky/specs/animation.md ('k') | sky/specs/runloop.md » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 ```
OLDNEW
« no previous file with comments | « sky/specs/animation.md ('k') | sky/specs/runloop.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698