DescriptionCheck before setting initial border image styles
Border-image and its friend mask-box-image are shorthands that
expand out into 4 css properties[1]. When setting the initial values
for these we would blindly create a new NinePieceBorderImage which
is large and contains non-trivial destructors. This patch first
checks whether the current value is already equal to the initial value
before setting.
[1] https://developer.mozilla.org/en-US/docs/Web/CSS/border-image
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176492
Patch Set 1 #Patch Set 2 : Fix mask slice, cleanup static helpers #Patch Set 3 : Fix mask slice fill #Patch Set 4 : Reorder for readability #Messages
Total messages: 5 (0 generated)
|