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

Unified Diff: sky/sdk/lib/widgets/widget.dart

Issue 1184823007: Rename 'content' to 'child' in widget.dart internals, for consistency with everything else. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/widgets/widget.dart
diff --git a/sky/sdk/lib/widgets/widget.dart b/sky/sdk/lib/widgets/widget.dart
index a83b2c77cc56e796feaa08051427bb1b5c49fa18..2235180834d9c32a458a81e46d1b6af230775464 100644
--- a/sky/sdk/lib/widgets/widget.dart
+++ b/sky/sdk/lib/widgets/widget.dart
@@ -165,35 +165,35 @@ abstract class Widget {
// stylistic information, etc.
abstract class TagNode extends Widget {
- TagNode(Widget content, { String key })
- : this.content = content, super(key: key);
+ TagNode(Widget child, { String key })
+ : this.child = child, super(key: key);
- Widget content;
+ Widget child;
void _sync(Widget old, dynamic slot) {
- Widget oldContent = old == null ? null : (old as TagNode).content;
- content = syncChild(content, oldContent, slot);
- assert(content.root != null);
- _root = content.root;
+ Widget oldChild = old == null ? null : (old as TagNode).child;
+ child = syncChild(child, oldChild, slot);
+ assert(child.root != null);
+ _root = child.root;
assert(_root == root); // in case a subclass reintroduces it
}
void remove() {
- if (content != null)
- removeChild(content);
+ if (child != null)
+ removeChild(child);
super.remove();
}
void detachRoot() {
- if (content != null)
- content.detachRoot();
+ if (child != null)
+ child.detachRoot();
}
}
class ParentDataNode extends TagNode {
- ParentDataNode(Widget content, this.parentData, { String key })
- : super(content, key: key);
+ ParentDataNode(Widget child, this.parentData, { String key })
+ : super(child, key: key);
final ParentData parentData;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698