diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-10-07 19:11:33 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-10-07 19:11:33 +0200 |
commit | edbf09ea2968e5d83123973ea3e2222ebb6ba420 (patch) | |
tree | ebe909e0858e01275a726f14ad5b4aab2bec06fb /Libraries/LibHTML/HtmlView.cpp | |
parent | 71e8ddcd1c03c606c844a970986fa6834a5fae64 (diff) | |
download | serenity-edbf09ea2968e5d83123973ea3e2222ebb6ba420.zip |
LibHTML: Make the CSS and HTML parsers take StringViews
This allows us to avoid unnecessary making unnecessary String copies of
all the source text.
Diffstat (limited to 'Libraries/LibHTML/HtmlView.cpp')
-rw-r--r-- | Libraries/LibHTML/HtmlView.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibHTML/HtmlView.cpp b/Libraries/LibHTML/HtmlView.cpp index 8c42658512..1724b54114 100644 --- a/Libraries/LibHTML/HtmlView.cpp +++ b/Libraries/LibHTML/HtmlView.cpp @@ -178,7 +178,7 @@ void HtmlView::load(const URL& url) return; } - String html = String::copy(f->read_all()); + auto html = f->read_all(); auto document = parse_html(html, url); document->normalize(); |