From 2415a118f6ff727ceb3bc76b23dcbe88da25665d Mon Sep 17 00:00:00 2001 From: Hixie Date: Wed, 27 May 2015 09:30:25 -0700 Subject: [PATCH] Replace setBoxDecoration() with a decoration property. R=abarth@chromium.org Review URL: https://codereview.chromium.org/1153893006 --- examples/raw/simple_render_tree.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/raw/simple_render_tree.dart b/examples/raw/simple_render_tree.dart index 7740970d99b..552cf552d95 100644 --- a/examples/raw/simple_render_tree.dart +++ b/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); } }