aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_thread/lib.rs
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2016-12-16 12:10:05 +0100
committerEmilio Cobos Álvarez <emilio@crisal.io>2016-12-16 16:57:19 +0100
commita42cfae15385537451c6c70fc693fec24a0a5535 (patch)
treed3217e1d3621aa01965361f08d0a948b56646f23 /components/layout_thread/lib.rs
parent444fef164ed172de18fc6f2daf47c494fb4aae1d (diff)
downloadservo-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.rs4
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"));