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

Unified Diff: sky/sdk/lib/framework/rendering/box.dart

Issue 1162023004: Update BoxDecoration and RenderParagraph to use sky.Color instead of int. (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
Index: sky/sdk/lib/framework/rendering/box.dart
diff --git a/sky/sdk/lib/framework/rendering/box.dart b/sky/sdk/lib/framework/rendering/box.dart
index 100219477b9e13b750ad812f20c20636e9065313..4575d0e7b99e9159c921af3948c98a60d5e50e20 100644
--- a/sky/sdk/lib/framework/rendering/box.dart
+++ b/sky/sdk/lib/framework/rendering/box.dart
@@ -251,11 +251,7 @@ class RenderPadding extends RenderBox with RenderNodeWithChildMixin<RenderBox> {
// This must be immutable, because we won't notice when it changes
class BoxDecoration {
- // TODO(mpcomplete): go through and change the users of this class to pass
- // a Color object.
- BoxDecoration({
- backgroundColor
- }) : backgroundColor = new sky.Color(backgroundColor);
+ const BoxDecoration({this.backgroundColor});
final sky.Color backgroundColor;
}

Powered by Google App Engine
This is Rietveld 408576698