LibWeb: Make Element::tag_name() return a const FlyString&

The more generic virtual variant is renamed to node_name() and now only
Element has tag_name(). This removes a huge amount of String ctor/dtor
churn in selector matching.
This commit is contained in:
Andreas Kling 2020-06-16 19:09:14 +02:00
commit 6242e029ed
Notes: sideshowbarker 2024-07-19 05:37:02 +09:00
12 changed files with 13 additions and 12 deletions

View file

@ -84,7 +84,7 @@ public:
virtual RefPtr<LayoutNode> create_layout_node(const StyleProperties* parent_style) const;
virtual FlyString tag_name() const = 0;
virtual FlyString node_name() const = 0;
virtual String text_content() const;