mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-17 14:05:35 +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.
8.9 KiB
8.9 KiB