DescriptionIntroduce BorderImageLength and BorderImageLengthBox
Getting rid of the Relative length type has been a goal for a while
and this is step one for getting rid of it for the remaining user:
border-image.
Specifically, the 'border-image-width' and 'border-image-outset'
longhand properties are the remaining users of the Relative length
type. Relative is used to indicate that the Length doesn't contain a
length at all, but a plain number (in this case a multiple of the
respective computed border width).
Wrap this usage within a BorderImageLength for now, to prepare for
BorderImageLength conditionally acting as a number itself and thus making
it possible to remove the Relative length type.
To limit scope, not all use of Length as a BorderImageLength is wrapped.
Notably parts of RenderStyle and the related animation code haven't
been converted. For this to work there is compatibility code that goes
from LengthBox to BorderImageLengthBox and back.
No functional changes expected. To a large part covered by existing
tests in LayoutTests/fast/borders/border-image-*.
BUG=259107
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=161527
Patch Set 1 #
Total comments: 29
Patch Set 2 : Address review comments #
Total comments: 4
Patch Set 3 : For landing #Patch Set 4 : Add PlatformExport.h #Patch Set 5 : Moved BorderImageLength{,Box} to core/rendering/style #Messages
Total messages: 12 (0 generated)
|