From b57d7e43326437d143708dd18025533cd8b0d8c6 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Wed, 9 Nov 2022 09:56:20 -0500 Subject: Browser+WebContent+WebDriver: Move Get/Set Window Rect to WebContent This also lets us more fully implement the "restore the window" method, which requires we block until the document reaches the "visible" state. --- Userland/Applications/Browser/WebDriverConnection.cpp | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'Userland/Applications/Browser/WebDriverConnection.cpp') diff --git a/Userland/Applications/Browser/WebDriverConnection.cpp b/Userland/Applications/Browser/WebDriverConnection.cpp index 8b516ae28e..4f24227c6f 100644 --- a/Userland/Applications/Browser/WebDriverConnection.cpp +++ b/Userland/Applications/Browser/WebDriverConnection.cpp @@ -75,20 +75,6 @@ void WebDriverConnection::restore_window() } } -void WebDriverConnection::set_window_size(Gfx::IntSize const& size) -{ - dbgln_if(WEBDRIVER_DEBUG, "WebDriverConnection: set_window_size {}", size); - if (auto browser_window = m_browser_window.strong_ref()) - browser_window->resize(size); -} - -void WebDriverConnection::set_window_position(Gfx::IntPoint const& position) -{ - dbgln_if(WEBDRIVER_DEBUG, "WebDriverConnection: set_window_position {}", position); - if (auto browser_window = m_browser_window.strong_ref()) - browser_window->move_to(position); -} - void WebDriverConnection::maximize_window() { dbgln_if(WEBDRIVER_DEBUG, "WebDriverConnection: maximize_window"); -- cgit debian/1.2.3+git2.25.1-1-2-gaceb0