mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:27:44 +00:00
LibWeb: Move document loading into separate file
In upcoming navigables refactor new function that uses fetch instead of ResourceLoader to load document content is going to be introduced: https://html.spec.whatwg.org/multipage/browsing-the-web.html#create-navigation-params-by-fetching `parse_document()` need to be separated from FrameLoader to reuse code responsible for parsing HTTP response into DOM document.
This commit is contained in:
parent
60a26077a7
commit
804af38a96
5 changed files with 222 additions and 187 deletions
16
Userland/Libraries/LibWeb/DOM/DocumentLoading.h
Normal file
16
Userland/Libraries/LibWeb/DOM/DocumentLoading.h
Normal file
|
@ -0,0 +1,16 @@
|
|||
/*
|
||||
* Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
|
||||
* Copyright (c) 2023, Aliaksandr Kalenik <kalenik.aliaksandr@gmail.com>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <LibWeb/DOM/Document.h>
|
||||
|
||||
namespace Web {
|
||||
|
||||
bool parse_document(DOM::Document& document, ByteBuffer const& data);
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue