From c46439f24063a5531f1f7562cf6d733cdbabdb51 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 28 Jul 2020 18:20:36 +0200 Subject: LibWeb: Move HTML classes into the Web::HTML namespace --- Libraries/LibWeb/Loader/FrameLoader.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Libraries/LibWeb/Loader') 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 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 create_text_document(const ByteBuffer& data, const URL& url) @@ -116,7 +116,7 @@ static RefPtr 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 FrameLoader::create_document_from_mime_type(const ByteBuffer& data, const URL& url, const String& mime_type, const String& encoding) @@ -130,7 +130,7 @@ RefPtr 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()); -- cgit v1.2.3