gecko-dev/servo
Boris Chiou 87c7ed9b72 Bug 1512883 - Part 1: Clamp to non-negative value after doing interpolation for circle(), ellipse(), and inset(). r=emilio,birtles
Replace LengthOrPercentage with NonNegativeLengthOrPercentage on
ShapeRadius, Circle, Ellipse. And derive ToAnimatedValue for ShapeSource and
its related types, so we clamp its interpolated results into non-negative
values. (i.e. The radius of circle()/ellipse() and the border-radius of
inset().)

Note: We may get negative values when using a negative easing function, so the
clamp is necessary to avoid the incorrect result or any undefined behavior.

Differential Revision: https://phabricator.services.mozilla.com/D14654

--HG--
extra : moz-landing-system : lando
2018-12-19 19:08:08 +00:00
..
components Bug 1512883 - Part 1: Clamp to non-negative value after doing interpolation for circle(), ellipse(), and inset(). r=emilio,birtles 2018-12-19 19:08:08 +00:00
ports/geckolib Bug 1514449 - Use NonNegative more in the border code. r=boris,#style 2018-12-17 21:35:14 +00:00
support/gecko/nsstring Bug 1511811 - Use https for the MPL license URL. 2018-12-03 08:43:48 -05:00
tests/unit Bug 1511811 - Use https for the MPL license URL. 2018-12-03 08:43:48 -05:00
moz.build Bug 1511811 - Use https for the MPL license URL. 2018-12-03 08:43:48 -05:00
rustfmt.toml Bug 1505618 - Add Servo's rustfmt.toml to the servo/ directory. r=heycam 2018-11-08 00:50:17 +01:00