Fix size keyword comparison in CSSRadialGradientValue::Equals
Said function would ignore any size keyword or explicit size specification if there was a shape keyword. Adjust the comparisons so that first any explicit size checked, followed by checking the size keyword and the shape value. Also rewrite the if-ladder for the center point (|first_x_| and |first_y_|) to just use two DataEquivalent. Bug: 775201 Change-Id: I44686b54d3e02e1fd4682c4288eec3aca0e3e441 Reviewed-on: https://chromium-review.googlesource.com/723460Reviewed-by:meade_UTC10 <meade@chromium.org> Commit-Queue: Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/master@{#509718}
Showing
Please register or sign in to comment