servo/components/layout_2020/flow
Martin Robinson f949d2adc8
fonts: Remove the per-FontGroup cached fallback font (#35705)
Instead of keeping a per-FontGroup cache of the previously used fallback
font, cache this value in the caller of `FontGroup::find_by_codepoint`.
The problem with caching this value in the `FontGroup` is that it can
make one layout different from the next.

Still, it is important to cache the value somewhere so that, for
instance, Chinese character don't have to continuously walk through the
entire fallback list when laying out. The heuristic here is to try to
last used font first if the `Script`s match. At the very least this
should make one layout consistent with the next.

Fixes #35704.
Fixes #35697.
Fixes #35689.
Fixes #35679.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
2025-02-28 14:33:21 +00:00
..
inline fonts: Remove the per-FontGroup cached fallback font (#35705) 2025-02-28 14:33:21 +00:00
construct.rs layout: Take percentage columns into account when sizing table grid min and max (#35167) 2025-01-27 15:04:37 +00:00
float.rs layout: Remove wrong optimization when placing table among floats (#35207) 2025-01-29 15:54:52 +00:00
mod.rs layout: Ignore indefinite stretch on min and max sizing properties (#35630) 2025-02-24 13:51:08 +00:00
root.rs Fix scroll_sensitivity related naming issue (#35462) 2025-02-14 10:18:25 +00:00