diff options
author | bors-servo <metajack+bors@gmail.com> | 2014-10-14 11:33:34 -0600 |
---|---|---|
committer | bors-servo <metajack+bors@gmail.com> | 2014-10-14 11:33:34 -0600 |
commit | 48ce107d7275c08273cea6dca3523d0eee23eea7 (patch) | |
tree | 94cf478b7d10e51a61b19fd5e597b666672aca39 /components/layout/layout_task.rs | |
parent | d1685015559562a42cc440f4e3b7a97d38cc642c (diff) | |
parent | 1827852810f686958e88009a81a1eb85216b2217 (diff) | |
download | servo-48ce107d7275c08273cea6dca3523d0eee23eea7.tar.gz servo-48ce107d7275c08273cea6dca3523d0eee23eea7.zip |
auto merge of #3675 : glennw/servo/local-fonts, r=pcwalton
Diffstat (limited to 'components/layout/layout_task.rs')
-rw-r--r-- | components/layout/layout_task.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/layout/layout_task.rs b/components/layout/layout_task.rs index 03ea97d8583..0eb0f739c69 100644 --- a/components/layout/layout_task.rs +++ b/components/layout/layout_task.rs @@ -469,8 +469,8 @@ impl LayoutTask { fn handle_add_stylesheet<'a>(&'a self, sheet: Stylesheet, possibly_locked_rw_data: &mut Option<MutexGuard<'a, LayoutTaskData>>) { // Find all font-face rules and notify the font cache of them. // GWTODO: Need to handle unloading web fonts (when we handle unloading stylesheets!) - iter_font_face_rules(&sheet, |family, url| { - self.font_cache_task.add_web_font(family.to_string(), url.clone()); + iter_font_face_rules(&sheet, |family, src| { + self.font_cache_task.add_web_font(family.to_string(), (*src).clone()); }); let mut rw_data = self.lock_rw_data(possibly_locked_rw_data); rw_data.stylist.add_stylesheet(sheet, AuthorOrigin); |