2010-04-27 Simon Fraser <simon.fraser@apple.com>
authorsimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 28 Apr 2010 04:20:55 +0000 (04:20 +0000)
committersimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 28 Apr 2010 04:20:55 +0000 (04:20 +0000)
commitd7e6a0493db0606741b0654ed5751bafbf899578
treede9960a76bb7effe2191f8a3f7eb55754a874a16
parentef0d148f6f96ba30c31b94baa2de5ea7eada1624
2010-04-27  Simon Fraser  <simon.fraser@apple.com>

        Reviewed by the inimitable Dan Bernstein.

        SVG as background image renders incorrectly after zooming
        https://bugs.webkit.org/show_bug.cgi?id=38215

        When doing a partial redraw of an SVGImage used as a CSS background
        image, we're limited to drawing the entire Frame, clipped to the dirty rect.
        Because of this, we need to fix up the CTM so that the origin is at the
        top left of the unclipped image, rather than the top left of the
        portion being redrawn.

        Test: fast/images/svg-background-partial-redraw.html

        * svg/graphics/SVGImage.cpp:
        (WebCore::SVGImage::draw):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@58375 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/images/resources/circle.svg [new file with mode: 0644]
LayoutTests/fast/images/svg-background-partial-redraw.html [new file with mode: 0644]
LayoutTests/platform/mac/fast/images/svg-background-partial-redraw-expected.checksum [new file with mode: 0644]
LayoutTests/platform/mac/fast/images/svg-background-partial-redraw-expected.png [new file with mode: 0644]
LayoutTests/platform/mac/fast/images/svg-background-partial-redraw-expected.txt [new file with mode: 0644]
WebCore/ChangeLog
WebCore/svg/graphics/SVGImage.cpp