Index: tools/dom/scripts/systemnative.py |
diff --git a/tools/dom/scripts/systemnative.py b/tools/dom/scripts/systemnative.py |
index 81023b6e9e6f869aaf5fe9a42cdac6c3ac2ccbe0..6e5e01bfd6d7b34385e62ce0a3a634d676f3a32c 100644 |
--- a/tools/dom/scripts/systemnative.py |
+++ b/tools/dom/scripts/systemnative.py |
@@ -280,6 +280,10 @@ class DartiumBackend(HtmlDartGenerator): |
self._AddSetter(attribute, html_name) |
def _AddGetter(self, attr, html_name): |
+ # Temporary hack to force dart:scalarlist clamped array for ImageData.data. |
+ # TODO(antonm): solve in principled way. |
+ if self._interface.id == 'ImageData' and html_name == 'data': |
+ html_name = '_data' |
type_info = self._TypeInfo(attr.type.id) |
dart_declaration = '%s get %s' % ( |
self.SecureOutputType(attr.type.id), html_name) |