mirror of
https://github.com/servo/servo
synced 2026-05-13 10:27:03 +02:00
This starts splitting out commonly shared data into a new data structure that will make it easier to compare old shaping results to new ones in the future. This eliminates some memory usage during inline layout, but adds 8 bytes per segment (usually one per inline box). We hope to recover this memory by storing one `GlyphStore` per `TextRunSegment`, which should recover 16 bytes. Testing: This should not change behavior so is covered by existing tests. Signed-off-by: Martin Robinson <mrobinson@igalia.com> Co-authored-by: Luke Warlow <lwarlow@igalia.com> Co-authored-by: Oriol Brufau <obrufau@igalia.com>