mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-03-19 20:06:29 +00:00
Instead of string splitting every time you call Element::has_class(), we now split the "class" attribute value when it changes, and cache the individual classes as FlyStrings in Element::m_classes. This makes has_class() significantly faster and moves the pain point of selector matching somewhere else.
3.4 KiB
3.4 KiB