mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:37:34 +00:00
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.
This commit is contained in:
parent
770372ad02
commit
7f22e2a3c4
4 changed files with 9 additions and 3 deletions
|
@ -33,6 +33,8 @@ namespace AttributeNames {
|
|||
FlyString id;
|
||||
FlyString class_;
|
||||
FlyString type;
|
||||
FlyString href;
|
||||
FlyString style;
|
||||
|
||||
void initialize()
|
||||
{
|
||||
|
@ -42,6 +44,8 @@ void initialize()
|
|||
id = "id";
|
||||
class_ = "class";
|
||||
type = "type";
|
||||
href = "href";
|
||||
style = "style";
|
||||
s_initialized = true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue