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

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

Issue 1146893004: Attempt to write a RenderShadowedBox (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Undo move 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 f2d43a65ca1b621bbf42bea715d00ada928bde12..e49bae9a5010354093ecb7014c99e29a5c26e208 100644
--- a/sky/engine/core/painting/Size.dart
+++ b/sky/engine/core/painting/Size.dart
@@ -11,6 +11,8 @@ class Size {
const Size(this.width, this.height);
+ Point toPoint() { return new Point(width, height); }
+
const Size.infinite() : width = double.INFINITY, height = double.INFINITY;
bool operator ==(other) {

Powered by Google App Engine
This is Rietveld 408576698