mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-10 00:52:22 +02:00
These properties only return the computed border width, which is a style-level value that doesn't depend on layout geometry. Replace the full update_layout() call with update_style_if_needed_for_element() and resolve border widths directly from computed properties. This avoids potentially expensive synchronous layout when only CSS computed values are needed. Very profitable on https://x.com/ where we avoid lots of layout work.
211 KiB
211 KiB