mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-01 15:18:06 +00:00
LibWeb: Make BrowsingContextGroup & TraversableNavigable return a Page&
Removing another batch of uneeded null checks :^)
This commit is contained in:
parent
88f8ea7c60
commit
0cb0d60ac5
Notes:
sideshowbarker
2024-07-17 10:05:47 +09:00
Author: https://github.com/shannonbooth
Commit: 0cb0d60ac5
Pull-request: https://github.com/SerenityOS/serenity/pull/22142
Issue: https://github.com/SerenityOS/serenity/issues/22091
8 changed files with 13 additions and 16 deletions
|
@ -175,7 +175,7 @@ bool Page::handle_keyup(KeyCode key, unsigned modifiers, u32 code_point)
|
|||
void Page::set_top_level_traversable(JS::NonnullGCPtr<HTML::TraversableNavigable> navigable)
|
||||
{
|
||||
VERIFY(!m_top_level_traversable); // Replacement is not allowed!
|
||||
VERIFY(navigable->page() == this);
|
||||
VERIFY(&navigable->page() == this);
|
||||
m_top_level_traversable = navigable;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue