RenderImage ignores its percent width/height when setContainerSizeForRenderer
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 16 Apr 2012 20:08:02 +0000 (20:08 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 16 Apr 2012 20:08:02 +0000 (20:08 +0000)
commitb24da13799815f0c8f18a22aeb8192a1d13cf357
tree14430491443bb10b90a651dae2c9a18f5cbec0e4
parent238e439f347f42e35319d16de96b53b5997c7bc7
RenderImage ignores its percent width/height when setContainerSizeForRenderer
https://bugs.webkit.org/show_bug.cgi?id=80431

Add a test case for Bug 80431. It renders a 1x1 svg as an image with percent
width/height specified.

Patch by Yong Li <yoli@rim.com> on 2012-04-16
Reviewed by Nikolas Zimmermann.

* svg/as-image/resources/rect-1x1.svg: Added.
* svg/as-image/svg-as-image-with-relative-size-expected.html: Added.
* svg/as-image/svg-as-image-with-relative-size.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@114290 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/svg/as-image/resources/rect-1x1.svg [new file with mode: 0644]
LayoutTests/svg/as-image/svg-as-image-with-relative-size-expected.html [new file with mode: 0644]
LayoutTests/svg/as-image/svg-as-image-with-relative-size.html [new file with mode: 0644]