mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-23 18:51:55 +00:00
LibWeb: Move system visibility state to TraversableNavigable
This no longer belongs in BrowsingContext.
This commit is contained in:
parent
046ae7fe86
commit
38cb15ff49
Notes:
sideshowbarker
2024-07-17 18:23:22 +09:00
Author: https://github.com/awesomekling
Commit: 38cb15ff49
Pull-request: https://github.com/SerenityOS/serenity/pull/21167
Reviewed-by: https://github.com/AtkinsSJ ✅
7 changed files with 37 additions and 40 deletions
|
@ -1948,7 +1948,7 @@ void WebDriverConnection::restore_the_window()
|
|||
// Do not return from this operation until the visibility state of the top-level browsing context’s active document has reached the visible state, or until the operation times out.
|
||||
// FIXME: Implement timeouts.
|
||||
Web::Platform::EventLoopPlugin::the().spin_until([this]() {
|
||||
auto state = m_page_client.page().top_level_browsing_context().system_visibility_state();
|
||||
auto state = m_page_client.page().top_level_traversable()->system_visibility_state();
|
||||
return state == Web::HTML::VisibilityState::Visible;
|
||||
});
|
||||
}
|
||||
|
@ -1972,7 +1972,7 @@ Gfx::IntRect WebDriverConnection::iconify_the_window()
|
|||
// Do not return from this operation until the visibility state of the top-level browsing context’s active document has reached the hidden state, or until the operation times out.
|
||||
// FIXME: Implement timeouts.
|
||||
Web::Platform::EventLoopPlugin::the().spin_until([this]() {
|
||||
auto state = m_page_client.page().top_level_browsing_context().system_visibility_state();
|
||||
auto state = m_page_client.page().top_level_traversable()->system_visibility_state();
|
||||
return state == Web::HTML::VisibilityState::Hidden;
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue