Merge 146227 "Separate SVG image size and container size"
> Separate SVG image size and container size
> Reviewed by Stephen Chenney.
> Previously, SVG images could retain their cached size between reloads due to a bug where an
> old container size would be re-used if the image's new container size was not available yet.
> This patch changes SVGImage::size() to return the intrinsic size of the image before a
> container size has been set. SVGImageCache::imageSizeForRenderer will now return the
> image's intrinsic size instead of a cached value if the container size cannot be looked up.
> or the size of 'imageForContainer'.
> Test: svg/as-image/svg-container-size-after-reload.html
> * svg/graphics/SVGImage.cpp:
> * svg/graphics/SVGImage.h:
> The member variable 'm_intrinsicSize' has been added to track the image's intrinsic
> size. This term can be found in: http://www.w3.org/TR/css3-images/#default-sizing
> * svg/graphics/SVGImageCache.cpp:
> In both of these functions, image has been renamed to imageForContainer here to clarify
> that the cached container size is being returned, not the image's intrinsic size.
> * svg/as-image/svg-container-size-after-reload-expected.txt: Added.
> * svg/as-image/svg-container-size-after-reload.html: Added.