diff options
author | Keegan McAllister <kmcallister@mozilla.com> | 2013-08-09 13:41:10 -0700 |
---|---|---|
committer | Keegan McAllister <kmcallister@mozilla.com> | 2013-08-15 13:55:40 -0700 |
commit | ffe60ea02704c0bd4545a194bff3f2feafd0133c (patch) | |
tree | 97f40c907aae08235e4bc856681cd1eb6df5a274 /src/components/gfx/font.rs | |
parent | 907d9f23cf8ab5be112376199c3c57ba9e4a3035 (diff) | |
download | servo-ffe60ea02704c0bd4545a194bff3f2feafd0133c.tar.gz servo-ffe60ea02704c0bd4545a194bff3f2feafd0133c.zip |
Trait changes, and eliminate 'copy'
Diffstat (limited to 'src/components/gfx/font.rs')
-rw-r--r-- | src/components/gfx/font.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/components/gfx/font.rs b/src/components/gfx/font.rs index 7f4bddd7805..03f8def38d2 100644 --- a/src/components/gfx/font.rs +++ b/src/components/gfx/font.rs @@ -183,7 +183,7 @@ impl FontGroup { pub fn new(families: @str, style: &UsedFontStyle, fonts: ~[@mut Font]) -> FontGroup { FontGroup { families: families, - style: copy *style, + style: (*style).clone(), fonts: fonts, } } @@ -264,7 +264,7 @@ impl Font { handle: handle, azure_font: None, shaper: None, - style: copy *style, + style: (*style).clone(), metrics: metrics, backend: backend, profiler_chan: profiler_chan, @@ -281,7 +281,7 @@ impl Font { handle: handle, azure_font: None, shaper: None, - style: copy *style, + style: (*style).clone(), metrics: metrics, backend: backend, profiler_chan: profiler_chan, @@ -387,7 +387,7 @@ impl Font { fields: 0x0200 as uint16_t }; - let mut origin = copy baseline_origin; + let mut origin = baseline_origin.clone(); let mut azglyphs = ~[]; azglyphs.reserve(range.length()); @@ -462,7 +462,7 @@ impl Font { } pub fn get_descriptor(&self) -> FontDescriptor { - FontDescriptor::new(copy self.style, SelectorPlatformIdentifier(self.handle.face_identifier())) + FontDescriptor::new(self.style.clone(), SelectorPlatformIdentifier(self.handle.face_identifier())) } pub fn glyph_index(&self, codepoint: char) -> Option<GlyphIndex> { |