mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Put UnscannedTextFragmentInfo in a Box
This reduces the size of the SpecificFragmentInfo enum from 48 to 24.
This commit is contained in:
parent
14e945f09a
commit
31261f045e
5 changed files with 14 additions and 13 deletions
|
@ -476,8 +476,8 @@ fn split_first_fragment_at_newline_if_necessary(fragments: &mut LinkedList<Fragm
|
|||
}
|
||||
first_fragment.transform(first_fragment.border_box.size,
|
||||
SpecificFragmentInfo::UnscannedText(
|
||||
UnscannedTextFragmentInfo::new(string_before,
|
||||
selection_before)))
|
||||
box UnscannedTextFragmentInfo::new(string_before,
|
||||
selection_before)))
|
||||
};
|
||||
|
||||
fragments.push_front(new_fragment);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue