Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Unified Diff: sdk/lib/html/html_common/conversions.dart

Issue 41583005: ImageData.data is a Uint8ClampedList (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | tools/dom/scripts/dartmetadata.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
}
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | tools/dom/scripts/dartmetadata.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698