summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Dump.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-03-10 15:50:16 +0100
committerAndreas Kling <kling@serenityos.org>2022-03-11 00:21:49 +0100
commit9461e44afa62624564b67b41bf565ee4bee09c22 (patch)
tree80d4102032d3449f673ed57553753727dbcd9d5e /Userland/Libraries/LibWeb/Dump.cpp
parent02b316fd5cc2039a30cab33edee4595900cb35aa (diff)
downloadserenity-9461e44afa62624564b67b41bf565ee4bee09c22.zip
LibWeb: Use Layout::Box::paint_box() accessor in more places
Diffstat (limited to 'Userland/Libraries/LibWeb/Dump.cpp')
-rw-r--r--Userland/Libraries/LibWeb/Dump.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/Userland/Libraries/LibWeb/Dump.cpp b/Userland/Libraries/LibWeb/Dump.cpp
index f4d1043907..467df34caf 100644
--- a/Userland/Libraries/LibWeb/Dump.cpp
+++ b/Userland/Libraries/LibWeb/Dump.cpp
@@ -167,10 +167,10 @@ void dump_tree(StringBuilder& builder, Layout::Node const& layout_node, bool sho
builder.appendff("@{:p} ", &layout_node);
builder.appendff("at ({},{}) content-size {}x{}",
- box.m_paint_box->absolute_x(),
- box.m_paint_box->absolute_y(),
- box.m_paint_box->content_width(),
- box.m_paint_box->content_height());
+ box.paint_box()->absolute_x(),
+ box.paint_box()->absolute_y(),
+ box.paint_box()->content_width(),
+ box.paint_box()->content_height());
if (box.is_positioned())
builder.appendff(" {}positioned{}", positioned_color_on, color_off);
@@ -205,7 +205,7 @@ void dump_tree(StringBuilder& builder, Layout::Node const& layout_node, bool sho
box.box_model().margin.left,
box.box_model().border.left,
box.box_model().padding.left,
- box.m_paint_box->content_width(),
+ box.paint_box()->content_width(),
box.box_model().padding.right,
box.box_model().border.right,
box.box_model().margin.right);
@@ -215,7 +215,7 @@ void dump_tree(StringBuilder& builder, Layout::Node const& layout_node, bool sho
box.box_model().margin.top,
box.box_model().border.top,
box.box_model().padding.top,
- box.m_paint_box->content_height(),
+ box.paint_box()->content_height(),
box.box_model().padding.bottom,
box.box_model().border.bottom,
box.box_model().margin.bottom);