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

Unified Diff: sky/sdk/lib/framework/layout2.dart

Issue 1149843003: Rename setupPos to setParentData (Closed) Base URL: git@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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/sdk/lib/framework/layout.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/framework/layout2.dart
diff --git a/sky/sdk/lib/framework/layout2.dart b/sky/sdk/lib/framework/layout2.dart
index a3d348be3c3bf165655f6a76d62623d78bfc76db..44b073eae469dbc561e5fd21d5ce17b1073ceb00 100644
--- a/sky/sdk/lib/framework/layout2.dart
+++ b/sky/sdk/lib/framework/layout2.dart
@@ -48,7 +48,7 @@ abstract class RenderNode extends AbstractNode {
// node out, and any other nodes who happen to know exactly what
// kind of node that is.
ParentData parentData;
- void setupPos(RenderNode child) {
+ void setParentData(RenderNode child) {
// override this to setup .parentData correctly for your class
if (child.parentData is! ParentData)
child.parentData = new ParentData();
@@ -57,7 +57,7 @@ abstract class RenderNode extends AbstractNode {
void adoptChild(RenderNode child) { // only for use by subclasses
// call this whenever you decide a node is a child
assert(child != null);
- setupPos(child);
+ setParentData(child);
super.adoptChild(child);
}
void dropChild(RenderNode child) { // only for use by subclasses
@@ -404,7 +404,7 @@ class BoxParentData extends ParentData {
abstract class RenderBox extends RenderNode {
- void setupPos(RenderNode child) {
+ void setParentData(RenderNode child) {
if (child.parentData is! BoxParentData)
child.parentData = new BoxParentData();
}
@@ -568,7 +568,7 @@ class RenderBlock extends RenderBox with ContainerRenderNodeMixin<RenderBox, Blo
}
}
- void setupPos(RenderBox child) {
+ void setParentData(RenderBox child) {
if (child.parentData is! BlockParentData)
child.parentData = new BlockParentData();
}
« no previous file with comments | « sky/sdk/lib/framework/layout.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698