DescriptionDo not calculate the same gradient length for every color stops.
The value of |gradientLength| in blink::CSSGradientValue::addStops
only depends on |gradientStart| and |gradientEnd| which values don't
change after their initializations, so |gradientLength| won't either.
In spite of this, the |gradientLength| is computed for every color
stops because |computedGradientLength| - the variable that was
originally introduced to check if |gradientLength| was set already -
is never changed to true.
The patch supplies this missing switch.
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=188224
Patch Set 1 #
Messages
Total messages: 8 (3 generated)
|