Incorrect embedded SVG image sizing on first load
authorfmalita@chromium.org <fmalita@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 22 Oct 2012 14:10:18 +0000 (14:10 +0000)
committerfmalita@chromium.org <fmalita@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 22 Oct 2012 14:10:18 +0000 (14:10 +0000)
commit51374eae9293c0fee6057e57491f80f79380f2ef
tree4965ff89337892cef5536f31286fc2b1131315fc
parent319f8891b97c23a1a3be42bce1ff616971818a83
Incorrect embedded SVG image sizing on first load
https://bugs.webkit.org/show_bug.cgi?id=99489

Reviewed by Nikolas Zimmermann.

Source/WebCore:

RenderSVGImage::updateImageViewport() must be called after the image loader is finished,
to ensure that a SVGImageCache::SizeAndScalesMap entry is created even if layout has
already been performed.

Test: svg/custom/svg-image-initial-size.html

* rendering/svg/RenderSVGImage.cpp:
(WebCore::RenderSVGImage::imageChanged):

LayoutTests:

* svg/custom/svg-image-initial-size-expected.html: Added.
* svg/custom/svg-image-initial-size.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@132069 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/svg/custom/svg-image-initial-size-expected.html [new file with mode: 0644]
LayoutTests/svg/custom/svg-image-initial-size.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/rendering/svg/RenderSVGImage.cpp