mirror of
https://github.com/RGBCube/serenity
synced 2025-05-23 18:35:07 +00:00
LibWeb: Use FlyString for Element tag names
This makes selector matching a lot more efficient, and also reduces the number of strings on the heap.
This commit is contained in:
parent
c4a6d6ae9f
commit
7309642ca8
48 changed files with 67 additions and 63 deletions
|
@ -45,7 +45,7 @@
|
|||
|
||||
namespace Web {
|
||||
|
||||
NonnullRefPtr<Element> create_element(Document& document, const String& tag_name)
|
||||
NonnullRefPtr<Element> create_element(Document& document, const FlyString& tag_name)
|
||||
{
|
||||
auto lowercase_tag_name = tag_name.to_lowercase();
|
||||
if (lowercase_tag_name == "a")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue