diff options
author | Andreas Kling <kling@serenityos.org> | 2020-07-28 18:20:36 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-07-28 18:55:48 +0200 |
commit | c46439f24063a5531f1f7562cf6d733cdbabdb51 (patch) | |
tree | 859ce620cbb59fd0d18700a524631dcbe6dd9eea /Libraries/LibWeb/Loader | |
parent | ebd2e7d9f569d284effeeb53a5589318391617b8 (diff) | |
download | serenity-c46439f24063a5531f1f7562cf6d733cdbabdb51.zip |
LibWeb: Move HTML classes into the Web::HTML namespace
Diffstat (limited to 'Libraries/LibWeb/Loader')
-rw-r--r-- | Libraries/LibWeb/Loader/FrameLoader.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Libraries/LibWeb/Loader/FrameLoader.cpp b/Libraries/LibWeb/Loader/FrameLoader.cpp index cfc6b78bf5..811da754b8 100644 --- a/Libraries/LibWeb/Loader/FrameLoader.cpp +++ b/Libraries/LibWeb/Loader/FrameLoader.cpp @@ -54,7 +54,7 @@ static RefPtr<DOM::Document> create_markdown_document(const ByteBuffer& data, co if (!markdown_document) return nullptr; - return parse_html_document(markdown_document->render_to_html(), url, "utf-8"); + return HTML::parse_html_document(markdown_document->render_to_html(), url, "utf-8"); } static RefPtr<DOM::Document> create_text_document(const ByteBuffer& data, const URL& url) @@ -116,7 +116,7 @@ static RefPtr<DOM::Document> create_gemini_document(const ByteBuffer& data, cons { auto markdown_document = Gemini::Document::parse({ (const char*)data.data(), data.size() }, url); - return parse_html_document(markdown_document->render_to_html(), url, "utf-8"); + return HTML::parse_html_document(markdown_document->render_to_html(), url, "utf-8"); } RefPtr<DOM::Document> FrameLoader::create_document_from_mime_type(const ByteBuffer& data, const URL& url, const String& mime_type, const String& encoding) @@ -130,7 +130,7 @@ RefPtr<DOM::Document> FrameLoader::create_document_from_mime_type(const ByteBuff if (mime_type == "text/gemini") return create_gemini_document(data, url); if (mime_type == "text/html") { - HTMLDocumentParser parser(data, encoding); + HTML::HTMLDocumentParser parser(data, encoding); parser.run(url); return parser.document(); } @@ -189,7 +189,7 @@ void FrameLoader::load_error_page(const URL& failed_url, const String& error) String::copy(data).characters(), escape_html_entities(failed_url.to_string()).characters(), escape_html_entities(error).characters()); - auto document = parse_html_document(html, failed_url, "utf-8"); + auto document = HTML::parse_html_document(html, failed_url, "utf-8"); ASSERT(document); frame().set_document(document); frame().page().client().page_did_change_title(document->title()); |