style: Add a StylesheetLoader abstraction, and make it a no-op on Geckolib.

Servo doesn't compile at this stage.
This commit is contained in:
Emilio Cobos Álvarez 2016-12-16 12:10:05 +01:00
parent 444fef164e
commit a42cfae153
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
9 changed files with 62 additions and 6 deletions

View file

@ -52,6 +52,7 @@ fn test_parse_stylesheet() {
}";
let url = ServoUrl::parse("about::test").unwrap();
let stylesheet = Stylesheet::from_str(css, url.clone(), Origin::UserAgent, Default::default(),
None,
Box::new(CSSErrorReporterTest),
ParserContextExtraData::default());
let mut namespaces = Namespaces::default();
@ -332,7 +333,9 @@ fn test_report_error_stylesheet() {
let errors = error_reporter.errors.clone();
Stylesheet::from_str(css, url, Origin::UserAgent, Default::default(), error_reporter,
Stylesheet::from_str(css, url, Origin::UserAgent, Default::default(),
None,
error_reporter,
ParserContextExtraData::default());
let mut errors = errors.lock().unwrap();