DescriptionImplement preserveAspectRatio=none for SVG images
Previously, preserveAspectRatio=none had no effect on SVG images. This change fixes this so
we follow the special handling of preserveAspectRatio on images as defined in the spec:
http://www.w3.org/TR/SVG/single-page.html, 7.8 The ‘preserveAspectRatio’ attribute.
Images that depend on a container size (such as SVG images) require a call to
setContainerSizeForRenderer(...) to set this size. By passing the image's intrinsic size
as the container size, the non-uniform scaling defined in the spec will be achieved.
BUG=173360
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=149936
Patch Set 1 #
Messages
Total messages: 4 (0 generated)
|