Description[CSS Shapes] Normalize distances to closest/farthest side
When calculating the radius given the center coordinate
and reference box we could end up with negative radius
for closest-side and center x/y larger than reference
box width/height. Also just giving negative center x/y
for closest-side can return negative radius. Catch all
these cases by normalizing the distances to the sides
for both ellipse and circle.
BUG=457807, 455837
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=190524
Patch Set 1 #Patch Set 2 : Fix test #Patch Set 3 : Remove ternary operator usage #Patch Set 4 : Remove unrelated change #Patch Set 5 : Fix style issue #
Total comments: 1
Patch Set 6 : Rename confusing radiusX/Y names #
Total comments: 1
Patch Set 7 : Abbreviate delta calculations #
Total comments: 3
Patch Set 8 : Fix ellipse case too #
Messages
Total messages: 26 (6 generated)
|