diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2016-12-16 12:10:05 +0100 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2016-12-16 16:57:19 +0100 |
commit | a42cfae15385537451c6c70fc693fec24a0a5535 (patch) | |
tree | d3217e1d3621aa01965361f08d0a948b56646f23 /components/layout_thread/lib.rs | |
parent | 444fef164ed172de18fc6f2daf47c494fb4aae1d (diff) | |
download | servo-a42cfae15385537451c6c70fc693fec24a0a5535.tar.gz servo-a42cfae15385537451c6c70fc693fec24a0a5535.zip |
style: Add a StylesheetLoader abstraction, and make it a no-op on Geckolib.
Servo doesn't compile at this stage.
Diffstat (limited to 'components/layout_thread/lib.rs')
-rw-r--r-- | components/layout_thread/lib.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/components/layout_thread/lib.rs b/components/layout_thread/lib.rs index 20ef9ff6cb4..342f8195cb6 100644 --- a/components/layout_thread/lib.rs +++ b/components/layout_thread/lib.rs @@ -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")); |