Emilio Cobos Álvarez
a7210fd082
style: Prevent Animate to generate NaN float values.
2017-08-29 11:57:50 +02:00
Anthony Ramine
ba4136b5a8
Document how style traits can be derived
2017-08-28 12:26:43 +02:00
Anthony Ramine
8101887d31
Support #[animation(constant)] when deriving ToAnimatedZero
2017-08-28 10:39:32 +02:00
Anthony Ramine
eaf2f1ec33
Introduce #[animation(constant)] for the Animate trait
...
This allows us to handle fields that should be the same during animations.
2017-08-28 10:39:10 +02:00
Anthony Ramine
7ee124b1ed
Derive the most trivial Animate impls
2017-08-22 19:12:47 +02:00
Anthony Ramine
faaf31411a
Derive the most trivial ToAnimatedZero impls
2017-08-22 19:12:42 +02:00
Anthony Ramine
aea0cd7ec7
Introduce values::animated::Animate
...
This replaces the Animatable trait and merges its three former methods into a single one.
2017-08-22 09:41:01 +02:00
Anthony Ramine
54dc3e1670
Clean up filter animations
2017-08-21 23:48:58 +02:00
Xidorn Quan
4e0b1071e7
Use Option<RGBA> for color in shadow
2017-08-19 00:20:24 +10:00
Hiroyuki Ikezoe
41cbd2fa62
Implement distance for shadow list.
2017-08-16 14:25:30 +09:00
Simon Sapin
b5a4b8d6a0
Upgrade to rustc 1.21.0-nightly (13d94d5fa 2017-08-10)
2017-08-15 14:10:44 +02:00
Hiroyuki Ikezoe
fa3b62746d
ComputedPositiveInteger is an integer greater than or equal to 1.
2017-08-15 13:03:54 +09:00
Anthony Ramine
49204e2c72
Introduce style::values::animated::color
...
Starting to remove stuff from style::properties::animated_properties for real.
2017-08-14 01:25:02 +02:00
Anthony Ramine
277351da35
Derive ComputeSquaredDistance
2017-08-13 13:34:04 +02:00
Anthony Ramine
51b740033b
Introduce ComputeSquaredDistance
...
This allows us to merge the former Animatable methods compute_distance and
compute_squared_distance, reducing code size.
2017-08-13 00:51:09 +02:00
Fausto Núñez Alberro
14c5a1b8d3
Introduce ComputedUrl
...
Add web platform tests for computed URL styles
Mark url with no original or resolved unreachable
Update the WPT manifest for new url tests
2017-08-09 13:55:39 +02:00
Boris Chiou
8651acd94c
Bug 1374233 - Part 13: Use NonNegative{*} types for components of Shadow and Filter.
...
MozReview-Commit-ID: Im4KGy1n9IJ
2017-08-04 14:23:30 +08:00
Boris Chiou
ebedea5860
Bug 1374233 - Part 11: Implement ToAnimatedValue for background-size.
...
MozReview-Commit-ID: DMcvpaqHdy9
2017-08-04 14:23:26 +08:00
Boris Chiou
1e79e5fe1b
Bug 1374233 - Part 10: Implement ToAnimatedValue for MozLength and MaxLength.
...
For flex-basis, width/height, {max|min}-width, {max|min}-height.
MozReview-Commit-ID: 4gGYSXoBS8e
2017-08-04 14:23:25 +08:00
Boris Chiou
b37f270c65
Bug 1374233 - Part 8: Implement ToAnimatedValue for BorderCornerRadius.
...
BorderCornerRadius should always be non-negative, so we can implemennt
ToAnimatedValue for it directly, for properties:
1. border-{*}-radius
2. -moz-outline-{*}-radius
MozReview-Commit-ID: HEbeHz9Hfkd
2017-08-04 14:23:23 +08:00
Boris Chiou
e72a0f126e
Bug 1374233 - Part 7: Add NonNegativeLengthOrPercentage.
...
For padding-{*} and grid-{*}-gap.
MozReview-Commit-ID: 81G0b1k6JnD
2017-08-04 14:23:21 +08:00
Boris Chiou
9d69cb2866
Bug 1374233 - Part 6: Add PositiveInteger and PositiveIntegerOrAuto for column-count.
...
column-count should be a positive integer or auto.
MozReview-Commit-ID: 9LFvrYo8De5
2017-08-04 14:23:17 +08:00
Boris Chiou
191c2a282b
Bug 1374233 - Part 2: Add NonNegativeAu.
...
Add values::computed::NonNegativeAu, so BorderSideWith could be computed
to this non-negative Au, for the following properties:
1. outline-width
2. border-{*}-width
3. column-rule-width
4. -webkit-text-stroke-width
MozReview-Commit-ID: ASHaB2F7VtM
2017-08-04 14:21:57 +08:00
Boris Chiou
4cc97746f2
Bug 1374233 - Part 1: Add NonNegativeNumber and GreaterThanOrEqualToOneNumber.
...
NonNegativeNumber: for -moz-box-flex, flex-grow, and flex-shrink.
GreaterThanOrEqualToOneNumber: for stroke-miterlimit.
MozReview-Commit-ID: Kgbt99BPdVA
2017-08-04 14:21:21 +08:00
Anthony Ramine
98bf832169
Move Animatable::get_zero_value to ToAnimatedZero::to_animated_zero
2017-07-19 10:19:44 +02:00
Anthony Ramine
80bd11bb8c
Merge BoxShadowList and TextShadowList into ShadowList<T>
2017-07-01 13:18:40 +02:00
Anthony Ramine
9ab0b9b4ac
Introduce ToAnimatedValue 🎥
2017-06-29 14:03:15 +02:00
Anthony Ramine
201d7e79e7
Make text-shadow and box-shadow use SimpleShadow
2017-06-28 16:28:25 +02:00
Anthony Ramine
395f6be0a6
Use the Separator trait for the filter property
2017-06-27 23:40:16 +02:00
Anthony Ramine
81a01f6ce1
Use generics for SimpleShadow
2017-06-24 13:01:20 +02:00
Anthony Ramine
c9b123266d
Unconditionally compile SimpleShadow even in Servo
2017-06-23 16:26:09 +02:00
Anthony Ramine
ae1c890c9e
Rename DropShadow to SimpleShadow
2017-06-23 16:25:50 +02:00
Anthony Ramine
6f4061d4ad
Use generics for the filter property
...
This introduces an additional shadow type for drop-shadow().
2017-06-20 13:48:53 +02:00