summaryrefslogtreecommitdiff
path: root/Libraries/LibWeb/DOM/Comment.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-06-16 19:09:14 +0200
committerAndreas Kling <kling@serenityos.org>2020-06-16 19:09:14 +0200
commit6242e029ede784af7230c17769b03f3d29268ac8 (patch)
tree682bad0031e2af600bfa0bb052e6a0776bbd63be /Libraries/LibWeb/DOM/Comment.h
parentea1ebe866299ef75376dc79c9406faa35c431d24 (diff)
downloadserenity-6242e029ede784af7230c17769b03f3d29268ac8.zip
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.
Diffstat (limited to 'Libraries/LibWeb/DOM/Comment.h')
-rw-r--r--Libraries/LibWeb/DOM/Comment.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibWeb/DOM/Comment.h b/Libraries/LibWeb/DOM/Comment.h
index e8a72cea08..13336833ff 100644
--- a/Libraries/LibWeb/DOM/Comment.h
+++ b/Libraries/LibWeb/DOM/Comment.h
@@ -36,7 +36,7 @@ public:
explicit Comment(Document&, const String&);
virtual ~Comment() override;
- virtual FlyString tag_name() const override { return "#comment"; }
+ virtual FlyString node_name() const override { return "#comment"; }
};
template<>