Index: sky/engine/core/painting/Size.dart |
diff --git a/sky/engine/core/painting/Size.dart b/sky/engine/core/painting/Size.dart |
index 5697086c319c9361d59a5c736e3956d5e571b96e..8b97d69630d83f55992c8239d1a73a01ec1d3ffc 100644 |
--- a/sky/engine/core/painting/Size.dart |
+++ b/sky/engine/core/painting/Size.dart |
@@ -9,7 +9,9 @@ class Size { |
double width; |
double height; |
- Size(this.width, this.height); |
+ Size([this.width = 0.0, this.height = 0.0]); |
Hixie
2015/05/28 18:45:21
Ditto.
|
+ |
+ Size.infinite() : width = double.INFINITY, height = double.INFINITY; |
bool operator ==(other) { |
if (!(other is Size)) return false; |