Canvas drawImage() doesn't match current specification. Negative source and destination-rects are aloud now. An INDEX_SIZE_ERR exception is only thrown when sw or sh are zero (like in Firefox).
Created attachment 22904 [details] drawImage() updated drawImage() matches the specification now and exception are only thrown if sh or sw are zero (like ff). Could only test it on gtk/cairo.
Created attachment 22918 [details] drawImage() update added const & to normalizeRect.
Created attachment 22921 [details] drawImage() update Added more testcases.
Created attachment 23066 [details] Canvas drawImage Removed pixel tests and added getImageData test.
Comment on attachment 23066 [details] Canvas drawImage r=me
Landed in r36043.