layout: Remove get_font_arc in favor of clone_font.

Since they do the same.
This commit is contained in:
Emilio Cobos Álvarez 2016-12-31 03:17:41 +01:00
parent b49eb6f566
commit fa26e87030
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
4 changed files with 5 additions and 10 deletions

View file

@ -154,7 +154,7 @@ impl TextRunScanner {
let word_break;
{
let in_fragment = self.clump.front().unwrap();
let font_style = in_fragment.style().get_font_arc();
let font_style = in_fragment.style().clone_font();
let inherited_text_style = in_fragment.style().get_inheritedtext();
fontgroup = font_context.layout_font_group_for_style(font_style);
compression = match in_fragment.white_space() {