summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-02-11 21:57:39 +0100
committerAndreas Kling <kling@serenityos.org>2022-02-11 21:57:39 +0100
commit9a92236a2451bbfdb54004740e58f8ff4ed5e1b2 (patch)
tree14f8901eafa9fd5279fb823785f1c61126d6325a /Userland/Libraries/LibWeb
parent9dcc752bcfeb9fcb94aeb6a9f0b222385ec448bd (diff)
downloadserenity-9a92236a2451bbfdb54004740e58f8ff4ed5e1b2.zip
LibWeb: Remove unused functions from Layout::Box
Diffstat (limited to 'Userland/Libraries/LibWeb')
-rw-r--r--Userland/Libraries/LibWeb/Layout/Box.h23
1 files changed, 0 insertions, 23 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/Box.h b/Userland/Libraries/LibWeb/Layout/Box.h
index 0137612216..c2928e4a59 100644
--- a/Userland/Libraries/LibWeb/Layout/Box.h
+++ b/Userland/Libraries/LibWeb/Layout/Box.h
@@ -59,18 +59,6 @@ public:
return rect;
}
- float margin_box_width() const
- {
- auto margin_box = box_model().margin_box();
- return content_width() + margin_box.left + margin_box.right;
- }
-
- float margin_box_height() const
- {
- auto margin_box = box_model().margin_box();
- return content_height() + margin_box.top + margin_box.bottom;
- }
-
float border_box_width() const
{
auto border_box = box_model().border_box();
@@ -88,17 +76,6 @@ public:
return { m_offset, m_content_size };
}
- Gfx::FloatRect border_box_as_relative_rect() const
- {
- auto rect = content_box_as_relative_rect();
- auto border_box = box_model().border_box();
- rect.set_x(rect.x() - border_box.left);
- rect.set_width(rect.width() + border_box.left + border_box.right);
- rect.set_y(rect.y() - border_box.top);
- rect.set_height(rect.height() + border_box.top + border_box.bottom);
- return rect;
- }
-
Gfx::FloatRect margin_box_as_relative_rect() const
{
auto rect = content_box_as_relative_rect();