diff options
author | Andreas Kling <kling@serenityos.org> | 2020-06-16 19:09:14 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-06-16 19:09:14 +0200 |
commit | 6242e029ede784af7230c17769b03f3d29268ac8 (patch) | |
tree | 682bad0031e2af600bfa0bb052e6a0776bbd63be /Libraries/LibWeb/DOM/Comment.h | |
parent | ea1ebe866299ef75376dc79c9406faa35c431d24 (diff) | |
download | serenity-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.h | 2 |
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<> |