Andreas Kling
d6d248c328
LibWeb: Add "data" to HTML::AttributeNames
2020-06-13 22:21:25 +02:00
Andreas Kling
7e8945601a
LibWeb: Turn <td align> into CSS text-align
...
Note that align=center and align=middle both behave like the <center>
element, and not like text-align:center.
2020-06-13 15:16:56 +02:00
Andreas Kling
0306ada1ff
LibWeb: Add "colspan" to HTML::AttributeNames
2020-06-13 00:11:14 +02:00
Andreas Kling
e9e2226544
LibWeb: Add "bgcolor" to HTML::AttributeNames
2020-06-12 22:47:41 +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
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