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

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

Issue 1159663003: Re-land "Add a Color class to dart:sky." (Closed) Base URL: git@github.com:/domokit/mojo.git@master
Patch Set: ink_well 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/examples/raw/painting.sky ('k') | sky/tests/resources/display_list.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/lib/framework/rendering/render_box.dart
diff --git a/sky/sdk/lib/framework/rendering/render_box.dart b/sky/sdk/lib/framework/rendering/render_box.dart
index a3d47124bd58482af1070b4122599aac22378384..dc081e1a159a7a21d7e1af6fa23f2e51bc3839a0 100644
--- a/sky/sdk/lib/framework/rendering/render_box.dart
+++ b/sky/sdk/lib/framework/rendering/render_box.dart
@@ -220,11 +220,13 @@ class RenderPadding extends RenderBox with RenderNodeWithChildMixin<RenderBox> {
// This must be immutable, because we won't notice when it changes
class BoxDecoration {
- const BoxDecoration({
- this.backgroundColor
- });
+ // TODO(mpcomplete): go through and change the users of this class to pass
+ // a Color object.
+ BoxDecoration({
+ backgroundColor
+ }) : backgroundColor = new sky.Color(backgroundColor);
- final int backgroundColor;
+ final sky.Color backgroundColor;
}
class RenderDecoratedBox extends RenderProxyBox {
« no previous file with comments | « sky/examples/raw/painting.sky ('k') | sky/tests/resources/display_list.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698