1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:38:11 +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:
Andreas Kling 2020-03-22 19:10:43 +01:00
parent c4a6d6ae9f
commit 7309642ca8
48 changed files with 67 additions and 63 deletions

View file

@ -26,7 +26,7 @@
#pragma once
#include <AK/String.h>
#include <AK/FlyString.h>
#include <AK/Vector.h>
#include <LibWeb/CSS/Specificity.h>
@ -55,7 +55,7 @@ public:
};
PseudoClass pseudo_class { PseudoClass::None };
String value;
FlyString value;
enum class AttributeMatchType {
None,
@ -64,7 +64,7 @@ public:
};
AttributeMatchType attribute_match_type { AttributeMatchType::None };
String attribute_name;
FlyString attribute_name;
String attribute_value;
};