DescriptionFactor out common BorderImageLength code in CSSToStyleMap
CSSToStyleMap::mapNinePieceImageQuad had a lot of repetitive code for
BorderImageLength. Factor it out to a static function.
Afterwards, the default constructor for BorderImageLengthBox gets used
less so make the code more explicit by removing the default
constructor entirely. Instead add a constructor that initializes the
members to a specific value.
Since this revealed one error in a code comment (the initial value for
-webkit-mask-box-image-width is 'auto' not zero) fix that as well.
BUG=322014
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=162646
Patch Set 1 #Patch Set 2 : Add test for -webkit-mask-box-image-width #Patch Set 3 : Add expected file too #
Total comments: 8
Patch Set 4 : Address review comments #
Messages
Total messages: 7 (0 generated)
|