PDFDocumentImage uses the media box unconditionally when determining the size of the image, which is wrong. It does the right thing (use crop box and fall back to media box if it's not there) in other places, though... so, make this consistent. Also, if the crop box origin is not 0,0, we double-translate by it, because PDFKit applies translation for us. <rdar://problem/15308765>
Created attachment 216099 [details] patch
http://trac.webkit.org/changeset/158701
This test fails: http://build.webkit.org/results/Apple%20MountainLion%20Debug%20WK2%20(Tests)/r158719%20(13962)/results.html