LibWeb: Transform SessionHistoryEntry from a struct to a class

No behaviour change intended.
This commit is contained in:
Aliaksandr Kalenik
2024-03-27 15:59:12 +01:00
committed by Andreas Kling
parent 5a43fc83bd
commit b590d1b48b
12 changed files with 197 additions and 161 deletions

View File

@@ -86,7 +86,7 @@ ErrorOr<JS::NonnullGCPtr<SVGDecodedImageData>> SVGDecodedImageData::create(JS::R
auto document = DOM::Document::create_and_initialize(DOM::Document::Type::HTML, "text/html"_string, navigation_params).release_value_but_fixme_should_propagate_errors();
navigable->set_ongoing_navigation({});
navigable->active_document()->destroy();
navigable->active_session_history_entry()->document_state->set_document(document);
navigable->active_session_history_entry()->document_state()->set_document(document);
auto parser = HTML::HTMLParser::create_with_uncertain_encoding(document, data);
parser->run(document->url());