aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/font_face.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/style/font_face.rs')
-rw-r--r--components/style/font_face.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/style/font_face.rs b/components/style/font_face.rs
index ff4f2993d81..52abb82c3cf 100644
--- a/components/style/font_face.rs
+++ b/components/style/font_face.rs
@@ -112,7 +112,7 @@ fn parse_one_src(context: &ParserContext, input: &mut Parser) -> Result<Source,
}
let url = try!(input.expect_url());
let url = UrlParser::new().base_url(context.base_url).parse(&url).unwrap_or_else(
- |_error| Url::parse("about:invalid").unwrap());
+ |_error| url!("about:invalid"));
// Parsing optional format()
let format_hints = if input.try(|input| input.expect_function_matching("format")).is_ok() {