1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-08 06:07:35 +00:00
Commit graph

1 commit

Author SHA1 Message Date
Andreas Kling
82444048de LibWeb: Add cached global attribute name FlyStrings
Instead of creating extremely common FlyStrings like "id" and "class"
on demand every time they are needed, we now have AttributeNames.h,
which provides Web::HTML::AttributeNames::{id,class_}

This avoids a bunch of string allocations during selector matching.
2020-05-26 23:45:43 +02:00