mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-28 13:18:19 +00:00
LibWeb: Remove a bunch of calls to to_byte_string
A bunch of this is leftover from pre porting over to new AK::String. For example, for functions which previously took a ByteString const& now accepting a StringView.
This commit is contained in:
parent
0090b916dd
commit
c3217754f1
Notes:
sideshowbarker
2024-07-17 23:02:37 +09:00
Author: https://github.com/shannonbooth
Commit: c3217754f1
Pull-request: https://github.com/SerenityOS/serenity/pull/23817
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/trflynn89
15 changed files with 21 additions and 30 deletions
|
@ -887,7 +887,7 @@ bool Node::is_root_element() const
|
|||
return is<HTML::HTMLHtmlElement>(*dom_node());
|
||||
}
|
||||
|
||||
ByteString Node::debug_description() const
|
||||
String Node::debug_description() const
|
||||
{
|
||||
StringBuilder builder;
|
||||
builder.append(class_name());
|
||||
|
@ -903,7 +903,7 @@ ByteString Node::debug_description() const
|
|||
} else {
|
||||
builder.append("(anonymous)"sv);
|
||||
}
|
||||
return builder.to_byte_string();
|
||||
return MUST(builder.to_string());
|
||||
}
|
||||
|
||||
CSS::Display Node::display() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue