mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-12 01:46:46 +02:00
Previously, we consulted `cascaded_properties()` in a couple of places after the cascade pass for the relevant element had finished, forcing `CascadedProperties` to outlive style resolution. We now keep the small set of values these consumers need on `ComputedProperties`. We keep hold of resolved specified values for properties whose computation depends on inherited info, so they can be re-resolved when an ancestor changes. We also keep the raw winning cascaded font-size, as this is needed by the time-traveling monospace font quirk implemented by `recascade_font_size_if_needed()`.
156 KiB
156 KiB