servo/components/style/values/generics
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
..
background.rs style: Refactor vector types. 2018-05-28 15:37:28 +02:00
basic_shape.rs style: Add some attributes for SpecifiedValueInfo to help deriving more from types. 2018-04-29 03:28:48 +02:00
border.rs style: Move represents_keyword to the css attributes. 2018-05-05 16:20:22 +02:00
box.rs style: Add a ValueInfo trait for exposing types needed by devtools. 2018-04-29 03:28:34 +02:00
color.rs style: Correct background/foreground ratio mixing. 2018-07-16 19:44:04 +02:00
column.rs style: Add a ValueInfo trait for exposing types needed by devtools. 2018-04-29 03:28:34 +02:00
counters.rs style: Remove stray newline. 2018-07-01 00:11:08 +02:00
effects.rs style: Distinguish between specified and computed URLs. 2018-05-19 10:15:17 +02:00
flex.rs style: Add a ValueInfo trait for exposing types needed by devtools. 2018-04-29 03:28:34 +02:00
font.rs Implement font fallback 2018-05-19 14:33:36 +10:00
gecko.rs style: Add a ValueInfo trait for exposing types needed by devtools. 2018-04-29 03:28:34 +02:00
grid.rs style: Add some attributes for SpecifiedValueInfo to help deriving more from types. 2018-04-29 03:28:48 +02:00
image.rs style: Fix tidy issues and Servo build. 2018-04-29 05:09:43 +02:00
mod.rs style: Extract {animated,computed}::Color common parts. 2018-06-12 12:15:15 -07:00
position.rs style: Add a ValueInfo trait for exposing types needed by devtools. 2018-04-29 03:28:34 +02:00
rect.rs style: Add a ValueInfo trait for exposing types needed by devtools. 2018-04-29 03:28:34 +02:00
size.rs style: Add a ValueInfo trait for exposing types needed by devtools. 2018-04-29 03:28:34 +02:00
svg.rs style: Refactor vector types. 2018-05-28 15:37:28 +02:00
text.rs style: Add a ValueInfo trait for exposing types needed by devtools. 2018-04-29 03:28:34 +02:00
transform.rs style: Avoid getting zero normalized vector of rotate3d for animations. 2018-07-24 03:26:12 +02:00
ui.rs style: Rename CaretColor to ColorOrAuto for reusing. 2018-05-28 15:36:55 +02:00
url.rs style: Add a ValueInfo trait for exposing types needed by devtools. 2018-04-29 03:28:34 +02:00