Enable RenderDecoratedBox to draw borders.

Currently supports only solid borders, but of any colour and size, independently controlling each side.

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1154903006
This commit is contained in:
Hixie
2015-06-04 10:50:59 -07:00
parent 548c01e233
commit 94c76c9914

View File

@@ -12,10 +12,13 @@ void main() {
initUnit();
test("should not have a 0 sized colored Box", () {
var coloredBox = new RenderDecoratedBox();
var coloredBox = new RenderDecoratedBox(
decoration: new BoxDecoration()
);
var paddingBox = new RenderPadding(padding: const EdgeDims.all(10.0),
child: coloredBox);
RenderBox root = new RenderDecoratedBox(
decoration: new BoxDecoration(),
child: paddingBox
);
TestView renderView = new TestView(child: root);