mirror of
https://github.com/servo/servo.git
synced 2025-09-30 16:49:16 +01:00
Replace Stylesheet::set_media with a constructor argument
This commit is contained in:
parent
f4dcc38816
commit
236c575c50
8 changed files with 29 additions and 31 deletions
|
@ -49,7 +49,7 @@ fn test_parse_stylesheet() {
|
|||
}
|
||||
}";
|
||||
let url = ServoUrl::parse("about::test").unwrap();
|
||||
let stylesheet = Stylesheet::from_str(css, url, Origin::UserAgent,
|
||||
let stylesheet = Stylesheet::from_str(css, url, Origin::UserAgent, Default::default(),
|
||||
Box::new(CSSErrorReporterTest),
|
||||
ParserContextExtraData::default());
|
||||
let expected = Stylesheet {
|
||||
|
@ -320,7 +320,7 @@ fn test_report_error_stylesheet() {
|
|||
|
||||
let errors = error_reporter.errors.clone();
|
||||
|
||||
Stylesheet::from_str(css, url, Origin::UserAgent, error_reporter,
|
||||
Stylesheet::from_str(css, url, Origin::UserAgent, Default::default(), error_reporter,
|
||||
ParserContextExtraData::default());
|
||||
|
||||
let mut errors = errors.lock().unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue