Reviewed by Kevin Ollivier.
Rescale image to fit the destination rect so that we don't get a crash when drawing in a destination rect that's bigger than the image rect. Also adds an optimization for drawing an image that is a solid color. https://bugs.webkit.org/show_bug.cgi?id=18465 git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34178 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Showing with 42 additions and 7 deletions