mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-27 12:15:33 +00:00
87c7ed9b72
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 |
||
---|---|---|
.. | ||
fallible | ||
hashglobe | ||
malloc_size_of | ||
malloc_size_of_derive | ||
selectors | ||
servo_arc | ||
size_of_test | ||
style | ||
style_derive | ||
style_traits |