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

Unified Diff: sky/examples/raw/simple_render_tree.dart

Issue 1159763003: Clean up syntax as suggested by sethladd (Closed) Base URL: https://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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/raw/simple_render_tree.dart
diff --git a/sky/examples/raw/simple_render_tree.dart b/sky/examples/raw/simple_render_tree.dart
index 019c185eb1e83939011624c4c6b629360179f782..b185c0794f4dace7cb37a767d238be99f224c67b 100644
--- a/sky/examples/raw/simple_render_tree.dart
+++ b/sky/examples/raw/simple_render_tree.dart
@@ -11,11 +11,9 @@ class RenderSolidColor extends RenderDecoratedBox {
final double desiredWidth;
final int backgroundColor;
- RenderSolidColor(int backgroundColor, { double desiredHeight: double.INFINITY,
- double desiredWidth: double.INFINITY })
- : desiredHeight = desiredHeight,
- desiredWidth = desiredWidth,
- backgroundColor = backgroundColor,
+ RenderSolidColor(int backgroundColor, { this.desiredHeight: double.INFINITY,
+ this.desiredWidth: double.INFINITY })
+ : backgroundColor = backgroundColor,
super(new BoxDecoration(backgroundColor: backgroundColor));
BoxDimensions getIntrinsicDimensions(BoxConstraints constraints) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698