From 270e3863516679d98d093c9dd26b823043ba06f9 Mon Sep 17 00:00:00 2001 From: Hixie Date: Wed, 27 May 2015 12:03:15 -0700 Subject: [PATCH] Fix compilation errors in render-sector.dart TBR=abarth Review URL: https://codereview.chromium.org/1153273002 --- examples/raw/sector-layout.dart | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/raw/sector-layout.dart b/examples/raw/sector-layout.dart index 825663843c..3b6d388edf 100644 --- a/examples/raw/sector-layout.dart +++ b/examples/raw/sector-layout.dart @@ -94,7 +94,6 @@ abstract class RenderSector extends RenderNode { } class RenderDecoratedSector extends RenderSector { - BoxDecoration _decoration; RenderDecoratedSector(BoxDecoration decoration) : _decoration = decoration; @@ -512,9 +511,9 @@ class RenderSolidColor extends RenderDecoratedSector { void handlePointer(sky.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); } }