| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
through ParserContext.
|
|
|
|
|
| |
This will be used for passing Gecko-specific information through
the CSS parser in stylo.
|
|
|
|
|
|
|
|
| |
In rust-url 1.0 the `Url` struct is going to have private fields, and there
is no way to to create an aribitrary one without going through the parser.
The plugin never had a clear demonstrated performance benefit,
it was made mostly because it was possible and relatively easy at the time.
|
|
|
|
|
| |
The pipeline id stuff is currently unused. If someone needs it, they can add
an additional trait bound on their css error reporter to get the pipeline id.
|
| |
|
| |
|
|
|
|
|
|
| |
Fixing unused attributes warnings required updating serde_macros
which required updating to rustc 1.6.0-nightly (a2866e387 2015-11-30)
which required updating some other dependencies.
|
|
|
|
| |
method
|
|
|
|
| |
ParserContext
|
|
|
|
|
|
| |
https://github.com/servo/rust-url/issues/136
https://github.com/servo/rust-url/pull/137
|
|
|
|
| |
This merges import blocks that were reported by tidy as unmerged.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
`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.
|
| |
|
|
|
|
|
| |
* Use associated types
* Avoid mutation to gather parsing results.
|
|
https://github.com/servo/rust-cssparser/pull/68
|