Implement ImageData constructors #15671

This commit is contained in:
montrivo 2017-03-05 00:11:46 +01:00
parent 7db36abf67
commit 46a25d621c
7 changed files with 156 additions and 19 deletions

View file

@ -9,9 +9,9 @@
* You are granted a license to use, reproduce and create derivative works of this document.
*/
//[Constructor(unsigned long sw, unsigned long sh),
//Constructor(Uint8ClampedArray data, unsigned long sw, optional unsigned long sh),
[Exposed=(Window,Worker)]
[Constructor(unsigned long sw, unsigned long sh),
Constructor(/* Uint8ClampedArray */ object data, unsigned long sw, optional unsigned long sh),
Exposed=(Window,Worker)]
interface ImageData {
//[Constant]
readonly attribute unsigned long width;