mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-06 16:19:23 +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:
parent
10851d87a2
commit
992697d99f
Notes:
sideshowbarker
2024-07-19 05:46:03 +09:00
Author: https://github.com/awesomekling
Commit: 992697d99f
23 changed files with 210 additions and 42 deletions
|
@ -39,7 +39,7 @@ public:
|
|||
template<>
|
||||
inline bool is<HTMLTableCellElement>(const Node& node)
|
||||
{
|
||||
return is<Element>(node) && to<Element>(node).tag_name().is_one_of("td", "th");
|
||||
return is<Element>(node) && to<Element>(node).tag_name().is_one_of(HTML::TagNames::td, HTML::TagNames::th);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue