mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:17:45 +00:00
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:
parent
3e86f88d6a
commit
44f7d7406c
12 changed files with 56 additions and 34 deletions
|
@ -116,7 +116,9 @@ WebIDL::ExceptionOr<JS::NonnullGCPtr<TraversableNavigable>> TraversableNavigable
|
|||
auto traversable = TRY(create_a_new_top_level_traversable(page, nullptr, {}));
|
||||
|
||||
// 2. Navigate traversable to initialNavigationURL using traversable's active document, with documentResource set to initialNavigationPostResource.
|
||||
TRY(traversable->navigate(initial_navigation_url, *traversable->active_document(), initial_navigation_post_resource));
|
||||
TRY(traversable->navigate({ .url = initial_navigation_url,
|
||||
.source_document = *traversable->active_document(),
|
||||
.document_resource = initial_navigation_post_resource }));
|
||||
|
||||
// 3. Return traversable.
|
||||
return traversable;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue