Commit ae178800 authored by Ian Hickson's avatar Ian Hickson

Merge pull request #1870 from Hixie/image

Use Image.toString instead of rolling our own each time
parents d6f28faa f54b8ad5
......@@ -251,10 +251,7 @@ class RenderImage extends RenderBox {
void debugDescribeSettings(List<String> settings) {
super.debugDescribeSettings(settings);
if (image != null)
settings.add('image: [${image.width}\u00D7${image.height}]');
else
settings.add('image: null');
settings.add('image: $image');
if (width != null)
settings.add('width: $width');
if (height != null)
......
......@@ -11,7 +11,7 @@ class ImageInfo {
ImageInfo({ this.image, this.scale: 1.0 });
final ui.Image image;
final double scale;
String toString() => '[${image.width}\u00D7${image.height}] @ ${scale}x';
String toString() => '$image @ ${scale}x';
}
/// A callback for when the image is available.
......
......@@ -1593,10 +1593,7 @@ class RawImage extends LeafRenderObjectWidget {
void debugFillDescription(List<String> description) {
super.debugFillDescription(description);
if (image != null)
description.add('image: [${image.width}\u00D7${image.height}]');
else
description.add('image: null');
description.add('image: $image');
if (width != null)
description.add('width: $width');
if (height != null)
......
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