mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +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
|
@ -1542,6 +1542,7 @@ fn get_ua_stylesheets() -> Result<UserAgentStylesheets, &'static str> {
|
|||
None,
|
||||
Origin::UserAgent,
|
||||
Default::default(),
|
||||
None,
|
||||
Box::new(StdoutErrorReporter),
|
||||
ParserContextExtraData::default()))
|
||||
}
|
||||
|
@ -1555,7 +1556,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, Default::default(),
|
||||
Box::new(StdoutErrorReporter), ParserContextExtraData::default()));
|
||||
None, 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