diff options
Diffstat (limited to 'src/components/script/html/cssparse.rs')
-rw-r--r-- | src/components/script/html/cssparse.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/script/html/cssparse.rs b/src/components/script/html/cssparse.rs index b8addc5d31b..cb54e9dd198 100644 --- a/src/components/script/html/cssparse.rs +++ b/src/components/script/html/cssparse.rs @@ -15,11 +15,11 @@ use url::Url; /// Where a style sheet comes from. pub enum StylesheetProvenance { UrlProvenance(Url, ResourceTask), - InlineProvenance(Url, ~str), + InlineProvenance(Url, String), } // Parses the style data and returns the stylesheet -pub fn parse_inline_css(url: Url, data: ~str) -> Stylesheet { +pub fn parse_inline_css(url: Url, data: String) -> Stylesheet { parse_css(InlineProvenance(url, data)) } @@ -43,7 +43,7 @@ fn parse_css(provenance: StylesheetProvenance) -> Stylesheet { } InlineProvenance(base_url, data) => { debug!("cssparse: loading inline stylesheet {:s}", data); - Stylesheet::from_str(data, base_url, environment_encoding) + Stylesheet::from_str(data.as_slice(), base_url, environment_encoding) } } } |