diff options
author | Andreas Kling <kling@serenityos.org> | 2022-03-10 15:50:16 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-03-11 00:21:49 +0100 |
commit | 9461e44afa62624564b67b41bf565ee4bee09c22 (patch) | |
tree | 80d4102032d3449f673ed57553753727dbcd9d5e /Userland/Services | |
parent | 02b316fd5cc2039a30cab33edee4595900cb35aa (diff) | |
download | serenity-9461e44afa62624564b67b41bf565ee4bee09c22.zip |
LibWeb: Use Layout::Box::paint_box() accessor in more places
Diffstat (limited to 'Userland/Services')
-rw-r--r-- | Userland/Services/WebContent/ConnectionFromClient.cpp | 2 | ||||
-rw-r--r-- | Userland/Services/WebContent/PageHost.cpp | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Services/WebContent/ConnectionFromClient.cpp b/Userland/Services/WebContent/ConnectionFromClient.cpp index bb592fbd41..86b8dde41c 100644 --- a/Userland/Services/WebContent/ConnectionFromClient.cpp +++ b/Userland/Services/WebContent/ConnectionFromClient.cpp @@ -190,7 +190,7 @@ void ConnectionFromClient::debug_request(const String& request, const String& ar if (request == "dump-stacking-context-tree") { if (auto* doc = page().top_level_browsing_context().active_document()) { if (auto* icb = doc->layout_node()) { - if (auto* stacking_context = icb->m_paint_box->stacking_context()) + if (auto* stacking_context = icb->paint_box()->stacking_context()) stacking_context->dump(); } } diff --git a/Userland/Services/WebContent/PageHost.cpp b/Userland/Services/WebContent/PageHost.cpp index 8182d75e77..86dc204e24 100644 --- a/Userland/Services/WebContent/PageHost.cpp +++ b/Userland/Services/WebContent/PageHost.cpp @@ -122,10 +122,10 @@ void PageHost::page_did_layout() auto* layout_root = this->layout_root(); VERIFY(layout_root); Gfx::IntSize content_size; - if (layout_root->m_paint_box->has_overflow()) - content_size = enclosing_int_rect(layout_root->m_paint_box->scrollable_overflow_rect().value()).size(); + if (layout_root->paint_box()->has_overflow()) + content_size = enclosing_int_rect(layout_root->paint_box()->scrollable_overflow_rect().value()).size(); else - content_size = enclosing_int_rect(layout_root->m_paint_box->absolute_rect()).size(); + content_size = enclosing_int_rect(layout_root->paint_box()->absolute_rect()).size(); m_client.async_did_layout(content_size); } |