Chromium Code Reviews| Index: third_party/WebKit/Source/core/html/ImageData.idl |
| diff --git a/third_party/WebKit/Source/core/html/ImageData.idl b/third_party/WebKit/Source/core/html/ImageData.idl |
| index d52d253a70049da153f86574ce21973a3bae0ad3..784708d8314c250a59ebab34d43dbe2b0dffdeb6 100644 |
| --- a/third_party/WebKit/Source/core/html/ImageData.idl |
| +++ b/third_party/WebKit/Source/core/html/ImageData.idl |
| @@ -28,14 +28,27 @@ |
| // https://html.spec.whatwg.org/#dom-imagedata |
| +//[ |
| +// Constructor(unsigned long sw, unsigned long sh), |
|
Justin Novosad
2016/12/08 18:16:35
Remove this comment block
zakerinasab
2016/12/08 20:40:52
Done.
|
| +// Constructor(Uint8ClampedArray data, unsigned long sw, optional unsigned long sh), |
| +// Exposed=(Window,Worker), |
| +// RaisesException=Constructor, |
| +//] interface ImageData { |
| +// readonly attribute unsigned long width; |
| +// readonly attribute unsigned long height; |
| +// readonly attribute Uint8ClampedArray data; |
| +//}; |
| + |
| +enum ImageDataColorSpace { "legacy-srgb", "srgb", "linear-rgb" }; |
| + |
| [ |
| - Constructor(unsigned long sw, unsigned long sh), |
| - Constructor(Uint8ClampedArray data, unsigned long sw, optional unsigned long sh), |
| + Constructor(unsigned long sw, unsigned long sh, optional ImageDataColorSpace colorSpace = "legacy-srgb"), |
| + Constructor(Uint8ClampedArray data, unsigned long sw, optional unsigned long sh, optional ImageDataColorSpace colorSpace), |
| Exposed=(Window,Worker), |
| RaisesException=Constructor, |
| ] interface ImageData { |
| readonly attribute unsigned long width; |
| readonly attribute unsigned long height; |
| - // TODO(foolip): Expose data. |
| - // readonly attribute Uint8ClampedArray data; |
| + readonly attribute Uint8ClampedArray data; |
|
Justin Novosad
2016/12/08 18:16:35
This should not be read-only
zakerinasab
2016/12/08 20:40:52
Resolved. Remains readonly.
|
| + readonly attribute ImageDataColorSpace colorSpace; |
| }; |