Replace setBoxDecoration() with a decoration property.

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1153893006
This commit is contained in:
Hixie 2015-05-27 09:30:25 -07:00
parent f706d82828
commit 2415a118f6

View File

@ -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);
}
}