summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-08-14 16:43:08 +0200
committerAndreas Kling <kling@serenityos.org>2022-08-14 23:33:28 +0200
commitab6af4c9a0662847538c3786dfa39302d7dda7a0 (patch)
tree29e5a7605a34d89ebdc97be3cd4f2ce7497db324 /Userland
parent54ca9b50de133e2a4b43a400554a08197d7c3b07 (diff)
downloadserenity-ab6af4c9a0662847538c3786dfa39302d7dda7a0.zip
LibWeb: Remove unused member LineBuilder::m_layout_mode
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibWeb/Layout/InlineFormattingContext.cpp2
-rw-r--r--Userland/Libraries/LibWeb/Layout/LineBuilder.cpp3
-rw-r--r--Userland/Libraries/LibWeb/Layout/LineBuilder.h3
3 files changed, 3 insertions, 5 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/InlineFormattingContext.cpp b/Userland/Libraries/LibWeb/Layout/InlineFormattingContext.cpp
index d96e35a086..bb4c67e4a9 100644
--- a/Userland/Libraries/LibWeb/Layout/InlineFormattingContext.cpp
+++ b/Userland/Libraries/LibWeb/Layout/InlineFormattingContext.cpp
@@ -217,7 +217,7 @@ void InlineFormattingContext::generate_line_boxes(LayoutMode layout_mode)
line_boxes.clear_with_capacity();
InlineLevelIterator iterator(*this, m_state, containing_block(), layout_mode);
- LineBuilder line_builder(*this, m_state, layout_mode);
+ LineBuilder line_builder(*this, m_state);
for (;;) {
auto item_opt = iterator.next(line_builder.available_width_for_current_line());
diff --git a/Userland/Libraries/LibWeb/Layout/LineBuilder.cpp b/Userland/Libraries/LibWeb/Layout/LineBuilder.cpp
index 86ea897186..8167527490 100644
--- a/Userland/Libraries/LibWeb/Layout/LineBuilder.cpp
+++ b/Userland/Libraries/LibWeb/Layout/LineBuilder.cpp
@@ -9,11 +9,10 @@
namespace Web::Layout {
-LineBuilder::LineBuilder(InlineFormattingContext& context, LayoutState& layout_state, LayoutMode layout_mode)
+LineBuilder::LineBuilder(InlineFormattingContext& context, LayoutState& layout_state)
: m_context(context)
, m_layout_state(layout_state)
, m_containing_block_state(layout_state.get_mutable(context.containing_block()))
- , m_layout_mode(layout_mode)
{
begin_new_line(false);
}
diff --git a/Userland/Libraries/LibWeb/Layout/LineBuilder.h b/Userland/Libraries/LibWeb/Layout/LineBuilder.h
index 158908a199..e666e841c0 100644
--- a/Userland/Libraries/LibWeb/Layout/LineBuilder.h
+++ b/Userland/Libraries/LibWeb/Layout/LineBuilder.h
@@ -15,7 +15,7 @@ class LineBuilder {
AK_MAKE_NONMOVABLE(LineBuilder);
public:
- LineBuilder(InlineFormattingContext&, LayoutState&, LayoutMode);
+ LineBuilder(InlineFormattingContext&, LayoutState&);
~LineBuilder();
void break_line();
@@ -52,7 +52,6 @@ private:
InlineFormattingContext& m_context;
LayoutState& m_layout_state;
LayoutState::UsedValues& m_containing_block_state;
- LayoutMode m_layout_mode {};
float m_available_width_for_current_line { 0 };
float m_current_y { 0 };
float m_max_height_on_current_line { 0 };