Animated SVGs do not clear previous frame completely in hidpi mode.
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 27 Jul 2012 20:43:32 +0000 (20:43 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 27 Jul 2012 20:43:32 +0000 (20:43 +0000)
commitaedbfd1de122a10d371ff2199b8bcc8c03878978
treed852993ed81013a922bdf81557a7f7a8052fbb11
parent97dcb2ab6f650ca838900c02f6ef225bca3d9ec6
Animated SVGs do not clear previous frame completely in hidpi mode.
https://bugs.webkit.org/show_bug.cgi?id=92395

Patch by Varun Jain <varunjain@chromium.org> on 2012-07-27
Reviewed by Darin Adler.

Source/WebCore:

The rect thats is cleared in subsequent frames needed to be scaled with device scale.

Test: svg/as-image/animated-svg-repaints-completely-in-hidpi.html

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

LayoutTests:

* platform/chromium/TestExpectations:
* platform/mac/svg/as-image/animated-svg-repaints-completely-in-hidpi-expected.png: Added.
* platform/mac/svg/as-image/animated-svg-repaints-completely-in-hidpi-expected.txt: Added.
* svg/as-image/animated-svg-repaints-completely-in-hidpi.html: Added.
* svg/as-image/resources/animated-rect-fixed-size-3.svg: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@123914 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/platform/chromium/TestExpectations
LayoutTests/platform/mac/svg/as-image/animated-svg-repaints-completely-in-hidpi-expected.png [new file with mode: 0644]
LayoutTests/platform/mac/svg/as-image/animated-svg-repaints-completely-in-hidpi-expected.txt [new file with mode: 0644]
LayoutTests/svg/as-image/animated-svg-repaints-completely-in-hidpi.html [new file with mode: 0644]
LayoutTests/svg/as-image/resources/animated-rect-fixed-size-3.svg [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/svg/graphics/SVGImage.cpp