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

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

Issue 1153893006: Replace setBoxDecoration() with a decoration property. (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 | sky/sdk/lib/framework/layout2.dart » ('j') | sky/sdk/lib/framework/layout2.dart » ('J')
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 7740970d99b1ecc821b7bb0be9f61ea726810f0d..552cf552d9553cacddc3e9629e35a5e5b882ce71 100644
--- a/sky/examples/raw/simple_render_tree.dart
+++ b/sky/examples/raw/simple_render_tree.dart
@@ -30,9 +30,9 @@ class RenderSolidColor extends RenderDecoratedBox {
void handlePointer(PointerEvent event) {
if (event.type == 'pointerdown')
- setBoxDecoration(new BoxDecoration(backgroundColor: 0xFFFF0000));
+ decoration = new BoxDecoration(backgroundColor: 0xFFFF0000);
else if (event.type == 'pointerup')
- setBoxDecoration(new BoxDecoration(backgroundColor: backgroundColor));
+ decoration = new BoxDecoration(backgroundColor: backgroundColor);
}
}
« no previous file with comments | « no previous file | sky/sdk/lib/framework/layout2.dart » ('j') | sky/sdk/lib/framework/layout2.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698