mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:17:35 +00:00
LibWeb: Port DOM::Document from DeprecatedString
This commit is contained in:
parent
c4d3134436
commit
f976ec005c
12 changed files with 55 additions and 55 deletions
|
@ -70,7 +70,7 @@ ErrorOr<NonnullRefPtr<SVGDecodedImageData>> SVGDecodedImageData::create(Page& ho
|
|||
.about_base_url = {},
|
||||
};
|
||||
// FIXME: Use Navigable::navigate() instead of manually replacing the navigable's document.
|
||||
auto document = DOM::Document::create_and_initialize(DOM::Document::Type::HTML, "text/html", navigation_params).release_value_but_fixme_should_propagate_errors();
|
||||
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);
|
||||
|
|
|
@ -42,7 +42,7 @@ void SVGTitleElement::children_changed()
|
|||
auto* document_element = document().document_element();
|
||||
|
||||
if (document_element == parent() && is<SVGElement>(document_element))
|
||||
page->client().page_did_change_title(document().title());
|
||||
page->client().page_did_change_title(document().title().to_deprecated_string());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue