DescriptionStraighten out zoom and border-image
The border-image-slice property determines how the image is sliced
into the nine piece pattern. Since border-image-slice are not lengths,
they are not automatically zoomed in computed style. Thus the zoom
factor hasn't been applied to the image size either. For border-image
the image size has no impact on the destination area anyway, so this
part is fine.
However, the default object size is in zoomed coordinates and unless
the default object size is unzoomed, there will be a mix of zoomed and
unzoomed coordinates when calculating the final image size for image
sizes that depend on the default object size, e.g. SVG with no
intrinsic size.
For this reason, unzoom the default object size before using it to
compute the image size.
Since the zoom passed to StyleImage::image() should represent the zoom
applied to the image size, it follows from this that the zoom should
be one.
BUG=596075, 561519
Committed: https://crrev.com/5375a43082553e259159d42ef83f727ed9fe5463
Cr-Commit-Position: refs/heads/master@{#382842}
Patch Set 1 #Patch Set 2 : Rebase on top of pointer-to-ref change #Patch Set 3 : Fix up test #
Total comments: 2
Dependent Patchsets: Messages
Total messages: 16 (8 generated)
|