mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +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
|
@ -1531,6 +1531,7 @@ fn get_ua_stylesheets() -> Result<UserAgentStylesheets, &'static str> {
|
|||
None,
|
||||
None,
|
||||
Origin::UserAgent,
|
||||
Default::default(),
|
||||
Box::new(StdoutErrorReporter),
|
||||
ParserContextExtraData::default()))
|
||||
}
|
||||
|
@ -1543,8 +1544,8 @@ fn get_ua_stylesheets() -> Result<UserAgentStylesheets, &'static str> {
|
|||
}
|
||||
for &(ref contents, ref url) in &opts::get().user_stylesheets {
|
||||
user_or_user_agent_stylesheets.push(Stylesheet::from_bytes(
|
||||
&contents, url.clone(), None, None, Origin::User, Box::new(StdoutErrorReporter),
|
||||
ParserContextExtraData::default()));
|
||||
&contents, url.clone(), None, None, Origin::User, Default::default(),
|
||||
Box::new(StdoutErrorReporter), ParserContextExtraData::default()));
|
||||
}
|
||||
|
||||
let quirks_mode_stylesheet = try!(parse_ua_stylesheet("quirks-mode.css"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue