From 1c54272b41431f52b865af4917185eb95113d04f Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 21 Jun 2020 21:37:51 +0200 Subject: [PATCH] Help: Use Web::PageView::load_html() Instead of invoking the HTML parser directly. --- Applications/Help/main.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Applications/Help/main.cpp b/Applications/Help/main.cpp index 903f23e5b5..64ec6417c8 100644 --- a/Applications/Help/main.cpp +++ b/Applications/Help/main.cpp @@ -27,6 +27,7 @@ #include "History.h" #include "ManualModel.h" #include +#include #include #include #include @@ -42,10 +43,8 @@ #include #include #include -#include #include -#include -#include +#include #include #include #include @@ -135,8 +134,7 @@ int main(int argc, char* argv[]) html = md_document->render_to_html(); } - auto html_document = Web::parse_html_document(html); - page_view.set_document(html_document); + page_view.load_html(html, URL::create_with_file_protocol(path)); String page_and_section = model->page_and_section(tree_view.selection().first()); window->set_title(String::format("%s - Help", page_and_section.characters()));