From 6242e029ede784af7230c17769b03f3d29268ac8 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 16 Jun 2020 19:09:14 +0200 Subject: 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. --- Libraries/LibWeb/Layout/StackingContext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Libraries/LibWeb/Layout') diff --git a/Libraries/LibWeb/Layout/StackingContext.cpp b/Libraries/LibWeb/Layout/StackingContext.cpp index a95ff04dfa..2ca5cb3b68 100644 --- a/Libraries/LibWeb/Layout/StackingContext.cpp +++ b/Libraries/LibWeb/Layout/StackingContext.cpp @@ -65,7 +65,7 @@ void StackingContext::dump(int indent) const { for (int i = 0; i < indent; ++i) dbgprintf(" "); - dbgprintf("SC for %s{%s} %s [children: %zu]\n", m_box.class_name(), m_box.node() ? m_box.node()->tag_name().characters() : "(anonymous)", m_box.absolute_rect().to_string().characters(), m_children.size()); + dbgprintf("SC for %s{%s} %s [children: %zu]\n", m_box.class_name(), m_box.node() ? m_box.node()->node_name().characters() : "(anonymous)", m_box.absolute_rect().to_string().characters(), m_children.size()); for (auto& child : m_children) child->dump(indent + 1); } -- cgit v1.2.3