Andreas Kling
21957745f7
LibWeb: Special-case initialization of HTML::AttributeNames::class_
...
Just do it after all the others instead of trying to be clever.
2020-06-03 22:06:52 +02:00
Andreas Kling
2149820260
LibWeb: Use HTML::AttributeNames::foo instead of FlyString("foo")
...
To avoid the costly instantiation of FlyStrings whenever we're looking
up attributes, use the premade HTML::AttributeNames globals. :^)
2020-06-03 21:53:00 +02:00
Andreas Kling
7f22e2a3c4
LibWeb: Use the globals from HTML::AttributeNames in style resolution
...
Using these avoids the FlyString lookups, so we should basically always
prefer them over string literal attribute names.
2020-05-30 13:06:26 +02:00
Andreas Kling
772b51038e
LibWeb: Parse "input" tags during the "in body" insertion mode
2020-05-28 12:19:18 +02:00
Emanuele Torre
8d8c33833f
LibWeb: s_initialized should be static in the AttributeNames initialiser
2020-05-27 09:57:38 +02:00
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