mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:47:44 +00:00
LibWeb: Remove unused member LineBuilder::m_layout_mode
This commit is contained in:
parent
54ca9b50de
commit
ab6af4c9a0
3 changed files with 3 additions and 5 deletions
|
@ -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());
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue