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

@ -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"));