servo/components/style/values
Emilio Cobos Álvarez 3a0c8fc760
style: Avoid getting zero normalized vector of rotate3d for animations.
If we have a rotate axis whose length is extremely large, we will get an
infinite value, and its normalized vector is a zero vector, instead of an
unit vector, i.e. (x/inf, y/inf, z/inf) == (0, 0, 0).

The solution is: we scale the vector, so the length becomes a finite value, and
we could get a valid unit vector.

Therefore, we use a different normalization method, robust_normalize().

Bug: 1467277
Reviewed-by: hiro
2018-07-24 03:26:12 +02:00
..
animated style: Correct background/foreground ratio mixing. 2018-07-16 19:44:04 +02:00
computed style: Change nscolor to StyleComplexColor. 2018-07-16 19:43:50 +02:00
generics style: Avoid getting zero normalized vector of rotate3d for animations. 2018-07-24 03:26:12 +02:00
specified style: Hide display: -moz-box|-moz-inline-box from content on Nightly and early beta. 2018-07-24 03:31:12 +02:00
distance.rs Run rustfmt on selectors, servo_arc, and style. 2018-04-10 17:35:15 -07:00
mod.rs style: Avoid useless allocations in custom property name serialization. 2018-06-12 12:15:11 -07:00