DescriptionFix three bugs in the equals() implementations for css gradients.
1. Linear gradients were considered equal if the first gradient has no x and y
position and the second has no x but does have y.
2. Same as 1, for radial gradients. (This doesn't happen in practice as
CSSParser::parseRadialGradient rejects such input, so no test for this case.)
3. Radial gradients without x and y position weren't considered equal even if
they were.
Found by clang's -Wunused-value in combination with
https://codereview.chromium.org/26205004/
BUG=none
R=eae@chromium.org
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=159903
Patch Set 1 #Patch Set 2 : . #Patch Set 3 : . #Patch Set 4 : . #
Messages
Total messages: 3 (0 generated)
|