mirror of
https://github.com/servo/servo.git
synced 2025-09-30 08:39:16 +01:00
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:
parent
444fef164e
commit
a42cfae153
9 changed files with 62 additions and 6 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue