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

Unified Diff: sky/engine/core/painting/Point.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
« no previous file with comments | « no previous file | sky/engine/core/painting/Size.dart » ('j') | sky/engine/core/painting/Size.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/painting/Point.dart
diff --git a/sky/engine/core/painting/Point.dart b/sky/engine/core/painting/Point.dart
index 82d2875e3b82c72a145429c439229f2d92c3839d..ad0dbbb74e7ec2e940e91a75aecf53b65d68bfdb 100644
--- a/sky/engine/core/painting/Point.dart
+++ b/sky/engine/core/painting/Point.dart
@@ -9,7 +9,7 @@ class Point {
double x;
double y;
- Point(this.x, this.y);
+ Point([this.x = 0.0, this.y = 0.0]);
Hixie 2015/05/28 18:45:21 I think we should make these required. These don't
bool operator ==(other) {
if (!(other is Point)) return false;
« no previous file with comments | « no previous file | sky/engine/core/painting/Size.dart » ('j') | sky/engine/core/painting/Size.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698