LibWeb: Use FlyString for element attribute names

Attribute names occur again and again.
This commit is contained in:
Andreas Kling 2020-03-22 13:10:04 +01:00
commit 7f83f77377
Notes: sideshowbarker 2024-07-19 08:11:03 +09:00
6 changed files with 19 additions and 18 deletions

View file

@ -39,7 +39,7 @@ public:
HTMLImageElement(Document&, const String& tag_name);
virtual ~HTMLImageElement() override;
virtual void parse_attribute(const String& name, const String& value) override;
virtual void parse_attribute(const FlyString& name, const String& value) override;
String alt() const { return attribute("alt"); }
String src() const { return attribute("src"); }