SVG Pattern tile pixelated on patternTransform
authorkrit@webkit.org <krit@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 3 Oct 2011 19:54:45 +0000 (19:54 +0000)
committerkrit@webkit.org <krit@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 3 Oct 2011 19:54:45 +0000 (19:54 +0000)
commit530eb308aaeacc2f6ae71a8fbbb941c66abb5f25
tree71667acb9eec6d1fed62fb4f04f1e1ad1e975310
parent1684c76978881496c675a6d6cd8c9c6a5ccad17c
SVG Pattern tile pixelated on patternTransform
https://bugs.webkit.org/show_bug.cgi?id=69261

Source/WebCore:

Reviewed by Rob Buis.

Scale the SVG pattern tile by the scale level of patternTransform to avoid pixelation.

Test: svg/custom/pattern-scaled-pattern-space.svg

* rendering/svg/RenderSVGResourcePattern.cpp:
(WebCore::RenderSVGResourcePattern::applyResource):

LayoutTests:

Reviewed by Rob Buis.

Add a new test to check that SVG pattern tiles are not pixelated on
scaling with patternTransform.
Updated two more pixel tests. Both changes are progressions.

* platform/mac/svg/W3C-SVG-1.1/pservers-grad-06-b-expected.png:
* platform/mac/svg/custom/non-scaling-stroke-expected.png:
* svg/custom/pattern-scaled-pattern-space-expected.png: Added.
* svg/custom/pattern-scaled-pattern-space-expected.txt: Added.
* svg/custom/pattern-scaled-pattern-space.svg: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96530 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/platform/mac/svg/W3C-SVG-1.1/pservers-grad-06-b-expected.png
LayoutTests/platform/mac/svg/custom/non-scaling-stroke-expected.png
LayoutTests/svg/custom/pattern-scaled-pattern-space-expected.png [new file with mode: 0644]
LayoutTests/svg/custom/pattern-scaled-pattern-space-expected.txt [new file with mode: 0644]
LayoutTests/svg/custom/pattern-scaled-pattern-space.svg [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/rendering/svg/RenderSVGResourcePattern.cpp