Anthony Ramine
36db6f9cdd
Derive ToCss for FontSettings<T>
2018-03-08 16:35:13 +01:00
Anthony Ramine
91e12563eb
Derive ToCss for Transform<T>
...
Now that #[derive(ToCss)] unconditionally bounds type params, we can derive
the trait for Transform<T>.
2018-03-08 16:35:12 +01:00
Anthony Ramine
859002a81f
Opt into field bounds when deriving ToCss, instead of opting out
2018-03-08 16:33:19 +01:00
Emilio Cobos Álvarez
0d7dae1f85
style: Derive ToCss for TimingFunction.
2018-03-08 10:28:11 +01:00
Anthony Ramine
2aa5f68c92
Derive ToCss for FontSize
2018-03-05 15:53:16 +01:00
Anthony Ramine
c4efbb4d51
Replace ColorOrAuto by CaretColor
...
This is its only use.
2018-02-28 10:25:59 +01:00
Anthony Ramine
27732c7dbb
Replace NonNegativeLengthOrNumber by a specific type for -moz-tab-size
...
This is the only use of this type.
2018-02-27 11:26:52 +01:00
Anthony Ramine
260e05320c
Replace LengthOrNone by a specific type for the perspective property
...
This was its only use, and it was bugged: AFAIK this didn't properly
clamp animated values below 0.
2018-02-26 22:32:06 +01:00
Anthony Ramine
0a3f30fb12
Return an error when animating column-count: auto
...
This changes the behaviour of animations of `column-count`
(hello Captain Obvious) but this is a bugfix.
2018-02-22 10:23:58 +01:00
Anthony Ramine
761689f32d
Replace PositiveIntegerOrAuto by ColumnCount
...
It was its only use.
2018-02-22 10:16:46 +01:00
Anthony Ramine
b44ffcf498
Replace IntegerOrAuto with ZIndex
...
It's its only use.
2018-02-20 15:18:22 +01:00
bors-servo
be902d56c0
Auto merge of #20073 - servo:keywordsize, r=emilio
...
Remove some useless manual layout optimisation for KeywordSize
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20073 )
<!-- Reviewable:end -->
2018-02-19 07:02:45 -05:00
Anthony Ramine
e976955634
Remove some useless manual layout optimisation for KeywordSize
2018-02-19 12:37:46 +01:00
Emilio Cobos Álvarez
7473796aba
style: Unship the legacy syntax for -moz-transform.
...
Intent to unship link:
https://groups.google.com/d/msg/mozilla.dev.platform/T3PGm97MPNU/59XUavMlCgAJ
Reviewed-by: xidorn
Bug: 1438297
MozReview-Commit-ID: 6ybGBasPAWU
2018-02-19 10:46:14 +01:00
Anthony Ramine
52f0fcabad
Properly implement ToAnimatedZero for BorderSpacing
2018-02-15 12:03:01 +01:00
Anthony Ramine
b17fea1d7f
Make KeywordInfo generic
2018-02-15 12:03:00 +01:00
Anthony Ramine
aea66a9fb6
Move FontTag to the generic module
2018-02-15 12:03:00 +01:00
Anthony Ramine
056abcbf5f
Change AnimatedValue for GreaterThanOrEqualToOneNumber to CSSFloat
2018-02-13 16:12:31 +01:00
bors-servo
41fb6ed1ff
Auto merge of #19980 - servo:derive-all-the-things, r=emilio
...
Merge all keyword arms in Clone for PropertyDeclaration 🐉 🐲
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/19980 )
<!-- Reviewable:end -->
2018-02-09 16:17:01 -05:00
bors-servo
c22baf58d0
Auto merge of #19985 - servo:derive-these-things-too, r=emilio
...
Derive ComputeSquaredDistance for animated filters
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/19985 )
<!-- Reviewable:end -->
2018-02-08 06:41:22 -05:00
Anthony Ramine
f017743a55
Derive ComputeSquaredDistance for animated filters
2018-02-08 03:14:23 +01:00
Anthony Ramine
335cb4c9f4
Whitelist Copy types when generating PropertyDeclaration
2018-02-07 22:49:15 +01:00
Emilio Cobos Álvarez
f4c9c598a3
style: Optimize serialization of identifiers of length <= 16 🐉 🐲
...
Much like we optimize to_ascii_lowercase.
This also fixes a bug in Servo where attr() rules with an unknown namespace
prefix are parsed, which is wrong.
2018-02-07 17:34:22 +01:00
Emilio Cobos Álvarez
d4b238bada
style: Cleanup shape-outside code.
2018-02-05 13:02:54 +01:00
Anthony Ramine
df11a7fec7
Simplify counter CSS properties
2018-02-04 14:52:38 +01:00
Jonas Reinwald
d24301b7a0
moved css longhand counter-reset out of mako
2018-02-01 15:43:40 +01:00
bors-servo
dcd13b857c
Auto merge of #19918 - emilio:font-stuff-is-a-mess, r=nox
...
style: Refactor font-feature-settings and font-variation-settings.
This fixes all known issues with serialization and parsing of these two
properties, and in particular calc handling and such:
https://bugzilla.mozilla.org/show_bug.cgi?id=1434692
https://bugzilla.mozilla.org/show_bug.cgi?id=1434724
Also does a fair amount of cleanup and all that, which was needed, this code
was a mess.
There are further cleanups that can be done, like renaming the
font-variation-settings animation stuff.
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/19918 )
<!-- Reviewable:end -->
2018-02-01 06:45:20 -06:00
Emilio Cobos Álvarez
3b34d734e6
style: Refactor font-feature-settings and font-variation-settings.
...
This fixes all known issues with serialization and parsing of these two
properties, and in particular calc handling and such:
https://bugzilla.mozilla.org/show_bug.cgi?id=1434692
https://bugzilla.mozilla.org/show_bug.cgi?id=1434724
Also does a fair amount of cleanup and all that, which was needed.
2018-02-01 12:54:45 +01:00
Anthony Ramine
3d99a4489c
Don't use define_css_keyword_enum in style anymore
2018-02-01 12:43:48 +01:00
Anthony Ramine
09e304adb3
Rename FillRule variants to follow the same rules as other enums
2018-02-01 12:43:29 +01:00
Anthony Ramine
1f8777bb0b
Move TransformStyle out of Mako files
2018-02-01 12:40:36 +01:00
Emilio Cobos Álvarez
09398d42af
style: Move a bunch of font stuff living under generics to the proper module.
...
FontSettingsTagInt and such shouldn't be in the generic module, I know...
But that will change in a bit.
2018-02-01 02:35:33 +01:00
Emilio Cobos Álvarez
1380f1a14f
style: Remove the stupid space serialization on font-settings.
2018-02-01 02:35:32 +01:00
Emilio Cobos Álvarez
190e9b9715
style: Tidy and sprinkle some comments.
2018-02-01 02:35:31 +01:00
CJ Ku
8a4661b829
Implement Animate trait for individual transforms
2018-01-31 22:15:31 +00:00
CJ Ku
174f5f7128
Implement scale property styling
2018-01-31 22:12:34 +00:00
CJ Ku
de3e8c9a8b
Implement translate property styling
2018-01-31 22:12:33 +00:00
CJ Ku
62c0c6feee
Implement rotate property styling
2018-01-31 22:12:26 +00:00
Anthony Ramine
42c8dc983f
Derive ToCss for TransformOperation
...
Now that SequenceWriter<W> does not monomorphise excessively, we can actually
type check a derived ToCss without too much type recursion.
2018-01-23 11:02:34 +01:00
Anthony Ramine
cd8f96cc9e
Change ToCss to take a CssWriter<W>
...
This more concrete wrapper type can write a prefix the very first time something
is written to it. This allows removing plenty of useless monomorphisations caused
by the former W/SequenceWriter<W> pair of types.
2018-01-23 10:41:42 +01:00
Anthony Ramine
6d2018ae38
Use Image::to_css in <Image as Debug>::fmt
2018-01-23 09:25:16 +01:00
Emilio Cobos Álvarez
de4dd638eb
style: Fix grid line serialization to avoid redundant spacing.
...
This fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1425227 .
2017-12-16 01:26:18 +01:00
Simon Sapin
e17697fb0e
Update euclid, azure, skia, offscreen_gl_context, plane-split, webrender
2017-12-08 14:32:28 +01:00
Ting-Yu Lin
923ffcf2cc
style: Support shape-image: <image>
...
MozReview-Commit-ID: GSCZIMEpCS2
2017-11-29 11:27:31 +08:00
Boris Chiou
3a38e815ec
Implement Servo_ParseTransformIntoMatrix.
...
DOMMatrix needs to convert a specified transform list into a matrix, so
we could rewrite to_transform_3d_matrix by generics for both specified
and computed transform lists.
Besides, we have to update the test case because we use Transform3D<f64> to
compute the matrix, instead of Transform3D<f32>, so the result will be
the same as that in Gecko. Using 0.3 may cause floating point issue
because (0.3f32 as f64) is not equal to 0.3 (i.e. floating point precision
issue), so using 0.25 instead.
2017-11-28 10:08:12 +08:00
Gecko Backout
9651a5572e
Backed out changeset 1fdcd69d2524 for Build Bustage. r=backout on a CLOSED TREE
...
Backs out https://github.com/servo/servo/pull/19376
2017-11-26 11:00:42 +00:00
Ting-Yu Lin
f3dbaad222
style: Support shape-image: <image>
...
MozReview-Commit-ID: GSCZIMEpCS2
2017-11-26 17:07:52 +08:00
CYBAI
dcdc384122
Implement normal for FontSettings
2017-11-20 21:38:50 +08:00
Xidorn Quan
8b9bbfea75
Use helpers.predefined_type for transform property.
2017-11-12 10:59:53 -08:00
Emilio Cobos Álvarez
92944cd5eb
style: Make css(dimension) apply to the variant.
2017-11-12 16:25:00 +01:00