mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibHTML: Make the CSS and HTML parsers take StringViews
This allows us to avoid unnecessary making unnecessary String copies of all the source text.
This commit is contained in:
parent
71e8ddcd1c
commit
edbf09ea29
Notes:
sideshowbarker
2024-07-19 11:45:37 +09:00
Author: https://github.com/awesomekling
Commit: edbf09ea29
6 changed files with 10 additions and 10 deletions
|
@ -27,7 +27,7 @@ void HTMLLinkElement::inserted_into(Node&)
|
|||
return;
|
||||
}
|
||||
auto data = file->read_all();
|
||||
auto sheet = parse_css(String::copy(data));
|
||||
auto sheet = parse_css(data);
|
||||
|
||||
if (!sheet) {
|
||||
dbg() << "Failed to parse " << url.to_string();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue