1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:48:12 +00:00

LibWeb: Add HTML::TagNames namespace for global tag name FlyStrings

Instead of "iframe", we can now say HTML::TagNames::iframe and avoid
a FlyString lookup.
This commit is contained in:
Andreas Kling 2020-06-07 23:27:03 +02:00
parent 10851d87a2
commit 992697d99f
23 changed files with 210 additions and 42 deletions

View file

@ -39,7 +39,7 @@ public:
template<>
inline bool is<HTMLTableElement>(const Node& node)
{
return is<Element>(node) && to<Element>(node).tag_name().equals_ignoring_case("table");
return is<Element>(node) && to<Element>(node).tag_name() == HTML::TagNames::table;
}
}