Commit 6ffea218 authored by Hixie's avatar Hixie

Replace setBoxDecoration() with a decoration property. (part II)

This was supposed to be in https://codereview.chromium.org/1153893006/

TBR=abarth

Review URL: https://codereview.chromium.org/1151383003
parent 2415a118
......@@ -98,10 +98,12 @@ class RenderDecoratedSector extends RenderSector {
RenderDecoratedSector(BoxDecoration decoration) : _decoration = decoration;
void setBoxDecoration(BoxDecoration decoration) {
if (_decoration == decoration)
BoxDecoration _decoration;
BoxDecoration get decoration => _decoration;
void set decoration (BoxDecoration value) {
if (value == _decoration)
return;
_decoration = decoration;
_decoration = value;
markNeedsPaint();
}
......
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