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

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

Issue 1162033002: Introduce RenderProxyBox and RenderSizedBox (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Now with test 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 | « sky/engine/core/painting/Rect.dart ('k') | sky/examples/raw/sector-layout.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/painting/Size.dart
diff --git a/sky/engine/core/painting/Size.dart b/sky/engine/core/painting/Size.dart
index aa65274cd5e38330ca1f381784aaf2a51af5be47..f2d43a65ca1b621bbf42bea715d00ada928bde12 100644
--- a/sky/engine/core/painting/Size.dart
+++ b/sky/engine/core/painting/Size.dart
@@ -6,12 +6,12 @@ part of dart.sky;
/// Holds a 2D floating-point size.
class Size {
- double width;
- double height;
+ final double width;
+ final double height;
- Size(this.width, this.height);
+ const Size(this.width, this.height);
- Size.infinite() : width = double.INFINITY, height = double.INFINITY;
+ const Size.infinite() : width = double.INFINITY, height = double.INFINITY;
bool operator ==(other) {
if (!(other is Size)) return false;
« no previous file with comments | « sky/engine/core/painting/Rect.dart ('k') | sky/examples/raw/sector-layout.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698