Commit 2415a118 authored by Hixie's avatar Hixie

Replace setBoxDecoration() with a decoration property.

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1153893006
parent f706d828
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment