Index: core/html/ImageData.idl |
diff --git a/core/html/ImageData.idl b/core/html/ImageData.idl |
index 06847999097b6b94586674ca8ec7d7459cefe45b..9aee728200a03b094a6bce4c24bebf8b5a0b2a3d 100644 |
--- a/core/html/ImageData.idl |
+++ b/core/html/ImageData.idl |
@@ -26,10 +26,18 @@ |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
+// http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#imagedata |
+ |
[ |
+ Constructor(unsigned long width, unsigned long height), |
+ Constructor(Uint8ClampedArray data, unsigned long width, [Default=Undefined] optional unsigned long height), |
Custom=Wrap, |
+ Exposed=Window&Worker, |
+ RaisesException=Constructor, |
+ WillBeGarbageCollected, |
] interface ImageData { |
readonly attribute long width; |
readonly attribute long height; |
-}; |
+ [DartCustom=New] readonly attribute ArrayBufferView data; |
+}; |