mirror of
https://github.com/servo/servo.git
synced 2025-08-16 10:55:34 +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
|
@ -7,7 +7,7 @@ use std::mem::size_of;
|
|||
|
||||
#[test]
|
||||
fn test_size_of_fragment() {
|
||||
let expected = 184;
|
||||
let expected = 160;
|
||||
let actual = size_of::<Fragment>();
|
||||
|
||||
if actual < expected {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue