mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
layout: Remove get_font_arc in favor of clone_font.
Since they do the same.
This commit is contained in:
parent
b49eb6f566
commit
fa26e87030
4 changed files with 5 additions and 10 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue