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

Unified Diff: sky/sdk/lib/framework/layout.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 | « no previous file | sky/sdk/lib/framework/layout2.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/framework/layout.dart
diff --git a/sky/sdk/lib/framework/layout.dart b/sky/sdk/lib/framework/layout.dart
index 3771a2e8ff470dd12a1f61eb425db32548034667..2ade1e9709024e8dafca300c04ef5369edfdc686 100644
--- a/sky/sdk/lib/framework/layout.dart
+++ b/sky/sdk/lib/framework/layout.dart
@@ -74,7 +74,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();
@@ -83,7 +83,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
@@ -311,7 +311,7 @@ class RenderCSSContainer extends RenderCSS with ContainerRenderNodeMixin<RenderC
RenderCSSContainer(debug) : super(debug);
- void setupPos(RenderNode child) {
+ void setParentData(RenderNode child) {
if (child.parentData is! CSSParentData)
child.parentData = new CSSParentData();
}
@@ -365,7 +365,7 @@ class RenderCSSFlex extends RenderCSSContainer {
markNeedsLayout();
}
- void setupPos(RenderNode child) {
+ void setParentData(RenderNode child) {
if (child.parentData is! FlexBoxParentData)
child.parentData = new FlexBoxParentData();
}
@@ -422,7 +422,7 @@ class RenderCSSStack extends RenderCSSContainer {
RenderCSSStack(debug) : super(debug);
- void setupPos(RenderNode child) {
+ void setParentData(RenderNode child) {
if (child.parentData is! StackParentData)
child.parentData = new StackParentData();
}
« no previous file with comments | « no previous file | sky/sdk/lib/framework/layout2.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698