Commit b7c58866 authored by Hixie's avatar Hixie

Rename "BorderSide.None" to "BorderSide.none", since it's a constant, and...

Rename "BorderSide.None" to "BorderSide.none", since it's a constant, and change the sky.Size.infinite() constructor to a constant.

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1158263005
parent 6559a8b6
...@@ -38,7 +38,7 @@ class SpriteBox extends RenderBox { ...@@ -38,7 +38,7 @@ class SpriteBox extends RenderBox {
double get systemHeight => _systemHeight; double get systemHeight => _systemHeight;
void performLayout() { void performLayout() {
size = constraints.constrain(new Size.infinite()); size = constraints.constrain(Size.infinite);
} }
void handleEvent(Event event) { void handleEvent(Event event) {
...@@ -136,4 +136,4 @@ class SpriteBox extends RenderBox { ...@@ -136,4 +136,4 @@ class SpriteBox extends RenderBox {
_rootNode.update(delta); _rootNode.update(delta);
_scheduleTick(); _scheduleTick();
} }
} }
\ No newline at end of file
...@@ -52,7 +52,7 @@ class InkWell extends RenderBox { ...@@ -52,7 +52,7 @@ class InkWell extends RenderBox {
} }
void performLayout() { void performLayout() {
size = constraints.constrain(new sky.Size.infinite()); size = constraints.constrain(sky.Size.infinite);
} }
void paint(RenderObjectDisplayList canvas) { void paint(RenderObjectDisplayList canvas) {
......
...@@ -62,7 +62,7 @@ class RenderTouchDemo extends RenderBox { ...@@ -62,7 +62,7 @@ class RenderTouchDemo extends RenderBox {
} }
void performLayout() { void performLayout() {
size = constraints.constrain(new Size.infinite()); size = constraints.constrain(Size.infinite);
} }
void paint(RenderObjectDisplayList canvas) { void paint(RenderObjectDisplayList canvas) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment