Bobby Holley
c99bcdd4b8
Run rustfmt on selectors, servo_arc, and style.
...
This was generated with:
./mach cargo fmt --package selectors &&
./mach cargo fmt --package servo_arc &&
./mach cargo fmt --package style
Using rustfmt 0.4.1-nightly (a4462d1 2018-03-26)
2018-04-10 17:35:15 -07:00
Bobby Holley
f7ae1a37e3
Manual fixups so that the rustfmt output won't trigger tidy.
2018-04-10 17:33:25 -07:00
Anthony Ramine
85950a801f
Move #[css(iterable)] on fields rather than variants
2018-03-06 11:08:19 +01:00
Anthony Ramine
be820092ad
Derive ToCss for VectorValues
2018-03-03 16:15:23 +01:00
Anthony Ramine
51a54e1a60
Derive ToCss for PairValues
2018-03-03 16:15:22 +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
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
3672856efa
Derive ToCss for font_feature_values_rule::SingleValue
2018-01-23 09:25:16 +01:00
Bobby Holley
5526947500
Avoid the generic writer parameter for PropertyDeclaration serialization.
...
MozReview-Commit-ID: JR3IcL1NRHO
2018-01-22 14:58:05 -08:00
CYBAI
a470ebd501
style: Move font-family outside of mako
2017-11-26 00:36:00 +08:00
Simon Sapin
46ea99d54b
CSS parsing error types: flatten nested enums somewhat
2017-10-10 13:28:30 +02:00
Simon Sapin
c64374bc58
Use the location in the error value when reporting a CSS error
2017-10-10 13:28:29 +02:00
Simon Sapin
c0f8f15f39
Update to cssparser 0.22 (source location in error types)
2017-10-10 13:28:17 +02:00
Simon Sapin
056e599562
Use the current parser location for CSS error
...
… rather than the start location of the current construct.
This likely places the error just *after* of the unexpected token
whereas before would be best, but that’s likely a much bigger change.
See https://bugzilla.mozilla.org/show_bug.cgi?id=1378861
2017-10-10 13:27:01 +02:00
Nazım Can Altınova
9b63fedf59
Don't convert property declarations to lowercase
...
Property declarations are case-sensitive per spec and we should
preserve that behavior.
2017-09-04 15:41:16 -07:00
Simon Sapin
5d06c9959f
Replace some more uses of write!
in components/style
2017-09-04 19:01:43 +02:00
Xidorn Quan
2bca62045f
Parse at-rule without block in two stages
2017-09-01 16:21:22 +10:00
Nazım Can Altınova
81be90cce2
Implement font feature values lookup for stylo
2017-08-25 12:03:38 -07:00
Nazım Can Altınova
4bdca9a312
Convert the @font-feature-values declarations to lowercase
...
The @font-feature-values declaration identifiers are asci case insensitive.
We should convert all of them to lowercase to be able to reduce the same
declarations. Also gecko stores them as lowercase in gfxFontFeatureValueSet.
2017-08-25 12:03:32 -07:00
Josh Matthews
1297c0ff51
Devirtualize CSS error reporting.
2017-08-24 10:41:06 -07:00
Emilio Cobos Álvarez
a962c54928
style: Cleanup ParserContext::new_with_rule_type.
2017-08-18 19:57:59 +02:00
Simon Sapin
7382dad939
Update to cssparser 0.19, count line numbers during tokenization
2017-08-09 22:37:16 +02:00
Nazım Can Altınova
43cf493832
style: Implement parsing/serialization for @font-feature-values rule
2017-07-27 13:37:57 -07:00