diff options
Diffstat (limited to 'src/components/script/html/cssparse.rs')
-rw-r--r-- | src/components/script/html/cssparse.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/components/script/html/cssparse.rs b/src/components/script/html/cssparse.rs index 15532d76ab8..76d294e978e 100644 --- a/src/components/script/html/cssparse.rs +++ b/src/components/script/html/cssparse.rs @@ -48,10 +48,11 @@ pub fn spawn_css_parser(provenance: StylesheetProvenance, let protocol_encoding_label = metadata.charset.as_ref().map(|s| s.as_slice()); let iter = ProgressMsgPortIterator { progress_port: progress_port }; Stylesheet::from_bytes_iter( - iter, protocol_encoding_label, Some(environment_encoding)) + iter, metadata.final_url, + protocol_encoding_label, Some(environment_encoding)) } - InlineProvenance(_, data) => { - Stylesheet::from_str(data, environment_encoding) + InlineProvenance(base_url, data) => { + Stylesheet::from_str(data, base_url, environment_encoding) } }; result_chan.send(sheet); |