Ms2ger
903305416a
Implement Clone for Copy types.
2015-04-28 23:31:10 +02:00
Corey Farwell
9f6d94e107
Add links to the spec for components/style
2015-04-17 21:29:08 -04:00
James Gilbertson
85dcc2deaf
Use iterators for iterating through CSS rules
2015-04-07 22:28:06 -06:00
Simon Sapin
e5466a34c5
Move style crate unit tests into the unit_tests crate.
2015-04-08 01:07:52 +02:00
Patrick Walton
750bbed2cb
gfx: Perform more aggressive caching in
...
`FontContext::get_layout_font_group_for_style()`.
There are several optimizations here:
* We make font families atoms, to allow for quicker comparisons.
* We precalculate an FNV hash of the relevant fields of the font style
structure.
* When obtaining a platform font group, we first check pointer equality
for the font style. If there's no match, we go to the FNV hash. Only
if both caches miss do we construct and cache a font group. Note that
individual fonts are *also* cached; thus there are two layers of
caching here.
15% improvement in total layout thread time for Facebook Timeline.
2015-04-01 08:58:16 -07:00
Simon Sapin
1c4b0dda55
Fix up libstyle unit test for background-size.
2015-03-03 18:48:17 +01:00
Simon Sapin
2a50755c8a
Move selector matching to an external library, for use outside Servo.
2015-02-23 16:29:34 +01:00
Simon Sapin
2ddb13db4b
Remove usage of the deprecated .as_slice() in libstyle.
2015-02-13 09:36:01 +01:00
Simon Sapin
1ceadf3813
Fix warnings in libstyle.
2015-02-13 08:24:34 +01:00
Simon Sapin
d5dd1d658e
Upgrade to rustc ba2f13ef0 2015-02-04
2015-02-11 14:48:34 -08:00
Simon Sapin
493a9e6a89
Bring CSS parse error reporting back. (Still off by default. Enable with RUST_LOG=style
.)
2015-01-30 15:07:29 +01:00
Simon Sapin
966af0030a
Upgrade to rust-cssparser master.
...
* Use associated types
* Avoid mutation to gather parsing results.
2015-01-30 15:07:29 +01:00
Josh Matthews
95fc29fa0d
Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev.
2015-01-28 10:16:49 +10:00
Simon Sapin
d034a6c6bc
Port to the new cssparser.
...
https://github.com/servo/rust-cssparser/pull/68
2015-01-21 22:23:46 +01:00
Ms2ger
b51e83819d
Fix obsolete format traits.
...
They are to be removed from the language in the next rust upgrade.
2015-01-02 19:04:18 +01:00
Simon Sapin
4a9d5b1130
Upgrade cssparser to a version with the new ToCss trait.
2014-12-29 16:19:09 +01:00
Ms2ger
466faac2a5
Update rustc to revision 3dcd2157403163789aaf21a9ab3c4d30a7c6494d.
2014-12-17 15:19:45 -05:00
Patrick Walton
a1ea44b294
style: Address review comments relating to bgcolor
and column spans
2014-12-15 18:09:44 -08:00
Joseph Crail
c254d195ad
Fix spelling mistakes in comments.
2014-12-11 23:56:29 -05:00
Jack Moffitt
d1b433a3b3
Rust upgrade to rustc hash b03a2755193cd756583bcf5831cf4545d75ecb8a
2014-11-13 11:17:43 +10:00
Glenn Watson
11cf538ff4
Make media queries work with resize and page zoom.
2014-11-04 13:25:21 -08:00
Glenn Watson
c7d81fdde6
Implement media queries parser and matching. Improves mobile first sites like bootstrap3.
2014-10-15 07:36:31 +10:00
Glenn Watson
1827852810
Add support for local font faces. Improves fonts on rust lang and guide.
2014-10-14 15:59:08 +10:00
Simon Sapin
b3245fa407
Upgrade to rustc d2b30f7d3 2014-09-23
2014-09-29 17:41:45 +01:00
Keegan McAllister
dc86e83654
Eliminate warnings
2014-09-20 13:00:55 -07:00
Jack Moffitt
c6ab60dbfc
Cargoify servo
2014-09-08 20:21:42 -06:00