| Index: sdk/lib/html/html_common/conversions.dart
|
| diff --git a/sdk/lib/html/html_common/conversions.dart b/sdk/lib/html/html_common/conversions.dart
|
| index 35d6c688dc63e79e9216fb2c96ca90e19b7c4c54..3bd2973a9e1c50d9872f665897e96ec6706578f2 100644
|
| --- a/sdk/lib/html/html_common/conversions.dart
|
| +++ b/sdk/lib/html/html_common/conversions.dart
|
| @@ -351,11 +351,11 @@ ImageData convertNativeToDart_ImageData(nativeImageData) {
|
|
|
| if (nativeImageData is ImageData) return nativeImageData;
|
|
|
| - // On Firefox the above test fails because imagedata is a plain object.
|
| - // So we create a _TypedImageData.
|
| + // On Firefox the above test fails because [nativeImageData] is a plain
|
| + // object. So we create a _TypedImageData.
|
|
|
| return new _TypedImageData(
|
| - JS('var', '#.data', nativeImageData),
|
| + JS('Uint8ClampedList', '#.data', nativeImageData),
|
| JS('var', '#.height', nativeImageData),
|
| JS('var', '#.width', nativeImageData));
|
| }
|
|
|