Commit 0bf6170c authored by Ian Hickson's avatar Ian Hickson

Merge pull request #1297 from Hixie/dialog-PENDING

StackParentData.toString() fix, RenderOpacity default
parents a10b1836 32cd916e
......@@ -535,7 +535,7 @@ int _getAlphaFromOpacity(double opacity) => (opacity * 255).round();
/// This class is relatively expensive because it requires painting the child
/// into an intermediate buffer.
class RenderOpacity extends RenderProxyBox {
RenderOpacity({ RenderBox child, double opacity })
RenderOpacity({ RenderBox child, double opacity: 1.0 })
: _opacity = opacity, _alpha = _getAlphaFromOpacity(opacity), super(child) {
assert(opacity >= 0.0 && opacity <= 1.0);
}
......
......@@ -202,8 +202,9 @@ class StackParentData extends ContainerBoxParentDataMixin<RenderBox> {
values.add('width=$width');
if (height != null)
values.add('height=$height');
if (values.length == null)
return 'all null';
if (values.isEmpty)
values.add('not positioned');
values.add(super.toString());
return values.join('; ');
}
}
......
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