diff --git a/src/components/servo-gfx/font_list.rs b/src/components/servo-gfx/font_list.rs index 648a9d7ce35..6bf11dc1cdd 100644 --- a/src/components/servo-gfx/font_list.rs +++ b/src/components/servo-gfx/font_list.rs @@ -132,7 +132,6 @@ impl FontFamily { /// In the common case, each FontFamily will have a singleton FontEntry, or it will have the /// standard four faces: Normal, Bold, Italic, BoldItalic. pub struct FontEntry { - family: @mut FontFamily, face_name: ~str, priv weight: CSSFontWeight, priv italic: bool, @@ -141,9 +140,8 @@ pub struct FontEntry { } impl FontEntry { - pub fn new(family: @mut FontFamily, handle: FontHandle) -> FontEntry { + pub fn new(handle: FontHandle) -> FontEntry { FontEntry { - family: family, face_name: handle.face_name(), weight: handle.boldness(), italic: handle.is_italic(), diff --git a/src/components/servo-gfx/platform/linux/font_list.rs b/src/components/servo-gfx/platform/linux/font_list.rs index 2c92880c040..a7b99c6679e 100644 --- a/src/components/servo-gfx/platform/linux/font_list.rs +++ b/src/components/servo-gfx/platform/linux/font_list.rs @@ -116,7 +116,7 @@ pub impl FontListHandle { let font_handle = font_handle.unwrap(); debug!("Creating new FontEntry for face: %s", font_handle.face_name()); - let entry = @FontEntry::new(family, font_handle); + let entry = @FontEntry::new(font_handle); family.entries.push(entry); } diff --git a/src/components/servo-gfx/platform/macos/font_list.rs b/src/components/servo-gfx/platform/macos/font_list.rs index d453485016c..f362b513092 100644 --- a/src/components/servo-gfx/platform/macos/font_list.rs +++ b/src/components/servo-gfx/platform/macos/font_list.rs @@ -51,7 +51,7 @@ pub impl FontListHandle { let handle = result::unwrap(FontHandle::new_from_CTFont(&self.fctx, font)); debug!("Creating new FontEntry for face: %s", handle.face_name()); - let entry = @FontEntry::new(family, handle); + let entry = @FontEntry::new(handle); family.entries.push(entry) } }