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

Side by Side Diff: sky/sdk/lib/framework/node.dart

Issue 1132063007: Rationalize Dart mojo and sky package structure (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 7 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/sdk/lib/framework/net/fetch.dart ('k') | sky/sdk/lib/framework/reflect.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 library node; 1 library node;
2 2
3 class Node { 3 class Node {
4 4
5 // Nodes always have a 'depth' greater than their ancestors'. 5 // Nodes always have a 'depth' greater than their ancestors'.
6 // There's no guarantee regarding depth between siblings. The depth 6 // There's no guarantee regarding depth between siblings. The depth
7 // of a node is used to ensure that nodes are processed in depth 7 // of a node is used to ensure that nodes are processed in depth
8 // order. The 'depth' of a child can be more than one greater than 8 // order. The 'depth' of a child can be more than one greater than
9 // the 'depth' of the parent, because the 'depth' values are never 9 // the 'depth' of the parent, because the 'depth' values are never
10 // decreased: all that matters is that it's greater than the parent. 10 // decreased: all that matters is that it's greater than the parent.
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 redepthChild(child); 51 redepthChild(child);
52 } 52 }
53 void dropChild(Node child) { // only for use by subclasses 53 void dropChild(Node child) { // only for use by subclasses
54 assert(child != null); 54 assert(child != null);
55 assert(child.attached == attached); 55 assert(child.attached == attached);
56 if (attached) 56 if (attached)
57 child.detach(); 57 child.detach();
58 } 58 }
59 59
60 } 60 }
OLDNEW
« no previous file with comments | « sky/sdk/lib/framework/net/fetch.dart ('k') | sky/sdk/lib/framework/reflect.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698