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)
commit530d969f57075cb9f0df51e4970d5d1d01320daf
tree14430491443bb10b90a651dae2c9a18f5cbec0e4
parentf8285182ff1c74d306cafd93df47ea925d32517e
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: https://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]