mirror of
https://github.com/servo/servo
synced 2026-04-26 01:25:32 +02:00
This decreases the size of `TextFragment` by 66 bits and also allows sharing empty metrics for text runs without fonts. Many `TextFragments` should share the same font so these 66 bits should reflect reality even though the `FontMetrics` is now stored on the heap. Testing: This should not change behavior so is covered by existing tests. Signed-off-by: Martin Robinson <mrobinson@igalia.com>