mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-26 18:35:47 +00:00
TreeBuilder wasn't taking advantage of the fact that we already have computed style cached on each DOM::Element by the time we're constructing a layout tree. So instead of using the cached style, we recomputed it from scratch for every element. This was done because invalidation was broken in many places, but now that it's more or less trustworthy, stop recomputing style on the fly in TreeBuilder and use what the preceding style update pass gave us instead. This basically cuts style computation work in half. :^)
19 KiB
19 KiB