mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 17:19:13 +00:00
LibWeb: Make HTML::Window::page() return a Page&
This commit is contained in:
parent
7c95ebc302
commit
9793d69d4f
Notes:
sideshowbarker
2024-07-17 08:37:36 +09:00
Author: https://github.com/awesomekling
Commit: 9793d69d4f
Pull-request: https://github.com/SerenityOS/serenity/pull/22299
Issue: https://github.com/SerenityOS/serenity/issues/22290
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/Lubrsi
10 changed files with 40 additions and 83 deletions
|
@ -40,7 +40,7 @@ void Screen::visit_edges(Cell::Visitor& visitor)
|
|||
|
||||
Gfx::IntRect Screen::screen_rect() const
|
||||
{
|
||||
auto screen_rect_in_css_pixels = window().page()->web_exposed_screen_area();
|
||||
auto screen_rect_in_css_pixels = window().page().web_exposed_screen_area();
|
||||
return {
|
||||
screen_rect_in_css_pixels.x().to_int(),
|
||||
screen_rect_in_css_pixels.y().to_int(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue