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

Unified Diff: sky/engine/core/painting/Size.dart

Issue 1156303004: Use Point, Size, and Rect in layout2.dart (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
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;

Powered by Google App Engine
This is Rietveld 408576698