| 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();
|
| }
|
|
|