DescriptionUse correct viewport for intrinsic size-less SVG images in <svg:image>
Prior to https://codereview.chromium.org/403393002, an SVG image which had
no intrinsic size specified, would (somewhat accidentally) get the
<image>'s bounds set as their container size. After said CL, the container
size would never be set, and hence remain as 300x150. This will result in
incorrect scale factors being used when painting, and hence an incorrectly
scaled result.
Revert to setting the <image>'s bounds when the SVG image does not have an
intrinsic size.
BUG=411906
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=181752
Patch Set 1 #
Total comments: 4
Patch Set 2 : Shuffle code; Add additional test. #
Messages
Total messages: 11 (2 generated)
|