Speed up SVG sprites by only painting the source rect in SVGImage::draw

Previously we painted an entire SVG sprite image, even if only a small
region was needed. This patch fixes this mistake by only painting
the minimum required area.

This patch takes a high-profile SVG scroll demo by adrianosmond from
around ~10fps to 30+fps. A minimized example of this bug is at:
philbit.com/sprites2.html (improved from less than 1fps to 30+fps)

BUG=253091

Review URL: https://chromiumcodereview.appspot.com/17800002

git-svn-id: svn://svn.chromium.org/blink/trunk@153069 bbb929c8-8fbe-4397-9dbb-9b2b20218538
1 file changed