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

Unified Diff: sky/sdk/lib/framework/rendering/flex.dart

Issue 1161323004: Export Point, Size, Rect, Color, Paint, Path, BoxDecoration, Border, BorderSide, EdgeDims, and Flex… (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: without analyser changes 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 | « sky/sdk/lib/framework/rendering/box.dart ('k') | sky/sdk/lib/framework/rendering/object.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/framework/rendering/flex.dart
diff --git a/sky/sdk/lib/framework/rendering/flex.dart b/sky/sdk/lib/framework/rendering/flex.dart
index 189f5619d64b9a2bb0e653a5d31fb7ca283ab126..1a0a1f61d1a0760f3a0749ae573f818e02d81366 100644
--- a/sky/sdk/lib/framework/rendering/flex.dart
+++ b/sky/sdk/lib/framework/rendering/flex.dart
@@ -2,7 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-import 'dart:sky' as sky;
import 'box.dart';
import 'object.dart';
@@ -42,7 +41,7 @@ class RenderFlex extends RenderBox with ContainerRenderObjectMixin<RenderBox, Fl
bool get sizedByParent => true;
void performResize() {
- size = constraints.constrain(new sky.Size(constraints.maxWidth, constraints.maxHeight));
+ size = constraints.constrain(new Size(constraints.maxWidth, constraints.maxHeight));
assert(size.height < double.INFINITY);
assert(size.width < double.INFINITY);
}
@@ -99,11 +98,11 @@ class RenderFlex extends RenderBox with ContainerRenderObjectMixin<RenderBox, Fl
// For now, center the flex items in the cross direction
switch (_direction) {
case FlexDirection.horizontal:
- child.parentData.position = new sky.Point(usedSpace, size.height / 2.0 - child.size.height / 2.0);
+ child.parentData.position = new Point(usedSpace, size.height / 2.0 - child.size.height / 2.0);
usedSpace += child.size.width;
break;
case FlexDirection.vertical:
- child.parentData.position = new sky.Point(size.width / 2.0 - child.size.width / 2.0, usedSpace);
+ child.parentData.position = new Point(size.width / 2.0 - child.size.width / 2.0, usedSpace);
usedSpace += child.size.height;
break;
}
@@ -111,7 +110,7 @@ class RenderFlex extends RenderBox with ContainerRenderObjectMixin<RenderBox, Fl
}
}
- void hitTestChildren(HitTestResult result, { sky.Point position }) {
+ void hitTestChildren(HitTestResult result, { Point position }) {
defaultHitTestChildren(result, position: position);
}
« no previous file with comments | « sky/sdk/lib/framework/rendering/box.dart ('k') | sky/sdk/lib/framework/rendering/object.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698