aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/parser.rs
Commit message (Collapse)AuthorAgeFilesLines
* Pass Gecko sheet base/referrer/principal from Servo_StylesheetFromUTF8Bytes ↵Cameron McCormack2016-05-241-1/+6
| | | | through ParserContext.
* Add an extra data field to ParserContext.Cameron McCormack2016-05-241-2/+31
| | | | | This will be used for passing Gecko-specific information through the CSS parser in stylo.
* Remove the url! plugin.Simon Sapin2016-04-141-1/+1
| | | | | | | | 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.
* Hoist ParseErrorReporter into style and remove the dependency on msg.Bobby Holley2016-01-111-1/+1
| | | | | 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.
* Use Url.join instead of UrlParser.base_url(...).parse (#9002)Mathieu Agopian2015-12-181-2/+2
|
* Add pipeline information to CSS error reporting.GauriGNaik2015-12-141-2/+2
|
* Fix warningsSimon Sapin2015-12-031-1/+0
| | | | | | 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.
* Make log_css_error in parser.rs take a &ParserContext argument and call this ↵GauriGNaik2015-12-021-6/+2
| | | | method
* Defined new trait ParseErrorReporter and added error_reporter member to ↵GauriGNaik2015-11-251-1/+5
| | | | ParserContext
* Implement 'url!(..)' macroCorey Farwell2015-11-211-1/+1
| | | | | | https://github.com/servo/rust-url/issues/136 https://github.com/servo/rust-url/pull/137
* Fix reported test-tidy errors for unmerged import blocksBrandon Fairchild2015-09-191-2/+1
| | | | This merges import blocks that were reported by tidy as unmerged.
* sort all usesJohann Tuffe2015-08-201-2/+2
|
* Use the correct log crate and setup env_logger in main.Eduard Burtescu2015-06-061-1/+1
|
* Implement parsing of an @viewport ruleJames Gilbertson2015-05-051-0/+2
|
* gfx: Perform more aggressive caching inPatrick Walton2015-04-011-1/+0
| | | | | | | | | | | | | | | | | | | `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.
* Move selector matching to an external library, for use outside Servo.Simon Sapin2015-02-231-19/+5
|
* Upgrade to rust-cssparser master.Simon Sapin2015-01-301-1/+21
| | | | | * Use associated types * Avoid mutation to gather parsing results.
* Port to the new cssparser.Simon Sapin2015-01-211-0/+42
https://github.com/servo/rust-cssparser/pull/68