LibWeb: Use struct to pass Navigable::navigate() params

Using structs makes the navigate() calls looks cleaner. No change
in behavior is intended.
This commit is contained in:
Aliaksandr Kalenik 2023-10-10 16:05:38 +02:00 committed by Alexander Kalenik
commit 44f7d7406c
Notes: sideshowbarker 2024-07-18 02:47:59 +09:00
12 changed files with 56 additions and 34 deletions

View file

@ -3492,7 +3492,7 @@ void Document::shared_declarative_refresh_steps(StringView input, JS::GCPtr<HTML
return;
VERIFY(navigable());
MUST(navigable()->navigate(url_record, *this));
MUST(navigable()->navigate({ .url = url_record, .source_document = *this }));
}).release_value_but_fixme_should_propagate_errors();
// For the purposes of the previous paragraph, a refresh is said to have come due as soon as the later of the