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

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: Actually works 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 4b364bb009d090d0404dce9f03961fa8de31a499..613dc8f42551ac351810d2d80c7dc43b0826d6cd 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;
const Size.fromWidth(this.width) : height = double.INFINITY;

Powered by Google App Engine
This is Rietveld 408576698