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() 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]
added const & to normalizeRect.
Created attachment 22921 [details]
Added more testcases.
Created attachment 23066 [details]
Removed pixel tests and added getImageData test.
Comment on attachment 23066 [details]
Landed in r36043.