summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Layout/ReplacedBox.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-01-21 13:34:29 +0100
committerAndreas Kling <kling@serenityos.org>2022-01-23 01:22:41 +0100
commit766d816db3642635e79dc4a8026534098c4d922a (patch)
treecfcdfd22438f1b6c927f1d005e7d403764f56c10 /Userland/Libraries/LibWeb/Layout/ReplacedBox.cpp
parentba49dc82e0f3b29fac84556dc658a1113f835409 (diff)
downloadserenity-766d816db3642635e79dc4a8026534098c4d922a.zip
LibWeb: Remove old Layout::Node::split_into_lines() API
Now that we build lines incrementally, we no longer need the atomic line splitting API. The new InlineLevelIterator and LineBuilder setup does have some regressions from the old behavior, but we can deal with them as we go.
Diffstat (limited to 'Userland/Libraries/LibWeb/Layout/ReplacedBox.cpp')
-rw-r--r--Userland/Libraries/LibWeb/Layout/ReplacedBox.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/ReplacedBox.cpp b/Userland/Libraries/LibWeb/Layout/ReplacedBox.cpp
index 1985f7fbd6..098e06db8b 100644
--- a/Userland/Libraries/LibWeb/Layout/ReplacedBox.cpp
+++ b/Userland/Libraries/LibWeb/Layout/ReplacedBox.cpp
@@ -22,17 +22,4 @@ ReplacedBox::~ReplacedBox()
{
}
-void ReplacedBox::split_into_lines(InlineFormattingContext& context, LayoutMode layout_mode)
-{
- auto& containing_block = context.containing_block();
-
- prepare_for_replaced_layout();
- context.dimension_box_on_line(*this, layout_mode);
-
- auto* line_box = &containing_block.ensure_last_line_box();
- if (line_box->width() > 0 && line_box->width() + width() > context.available_width_at_line(containing_block.line_boxes().size() - 1))
- line_box = &containing_block.add_line_box();
- line_box->add_fragment(*this, 0, 0, width(), height());
-}
-
}