mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:57:43 +00:00
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:
parent
ea1ebe8662
commit
6242e029ed
12 changed files with 13 additions and 12 deletions
|
@ -55,7 +55,7 @@ NodeWrapper* wrap(JS::Heap& heap, Node& node)
|
|||
NodeWrapper::NodeWrapper(Node& node)
|
||||
: EventTargetWrapper(node)
|
||||
{
|
||||
put("nodeName", JS::js_string(heap(), node.tag_name()));
|
||||
put("nodeName", JS::js_string(heap(), node.node_name()));
|
||||
}
|
||||
|
||||
NodeWrapper::~NodeWrapper()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue