From d18a5b904d4fef5e436ef384d22c81a6c819b108 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 18 Mar 2024 06:49:43 +0100 Subject: [PATCH] LibWeb: Remove unused LineBoxFragment member --- Userland/Libraries/LibWeb/Layout/LineBox.cpp | 2 +- Userland/Libraries/LibWeb/Layout/LineBoxFragment.h | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Userland/Libraries/LibWeb/Layout/LineBox.cpp b/Userland/Libraries/LibWeb/Layout/LineBox.cpp index 039cdc697eb..70ed94af292 100644 --- a/Userland/Libraries/LibWeb/Layout/LineBox.cpp +++ b/Userland/Libraries/LibWeb/Layout/LineBox.cpp @@ -32,7 +32,7 @@ void LineBox::add_fragment(Node const& layout_node, int start, int length, CSSPi Vector glyph_run_copy { glyph_run }; CSSPixels x_offset = leading_margin + leading_size + m_width; CSSPixels y_offset = 0; - m_fragments.append(LineBoxFragment { layout_node, start, length, CSSPixelPoint(x_offset, y_offset), CSSPixelSize(content_width, content_height), border_box_top, border_box_bottom, move(glyph_run_copy) }); + m_fragments.append(LineBoxFragment { layout_node, start, length, CSSPixelPoint(x_offset, y_offset), CSSPixelSize(content_width, content_height), border_box_top, move(glyph_run_copy) }); } m_width += leading_margin + leading_size + content_width + trailing_size + trailing_margin; m_height = max(m_height, content_height + border_box_top + border_box_bottom); diff --git a/Userland/Libraries/LibWeb/Layout/LineBoxFragment.h b/Userland/Libraries/LibWeb/Layout/LineBoxFragment.h index 8cb4c12f9a1..e44a87b0f05 100644 --- a/Userland/Libraries/LibWeb/Layout/LineBoxFragment.h +++ b/Userland/Libraries/LibWeb/Layout/LineBoxFragment.h @@ -19,14 +19,13 @@ class LineBoxFragment { friend class LineBox; public: - LineBoxFragment(Node const& layout_node, int start, int length, CSSPixelPoint offset, CSSPixelSize size, CSSPixels border_box_top, CSSPixels border_box_bottom, Vector glyphs) + LineBoxFragment(Node const& layout_node, int start, int length, CSSPixelPoint offset, CSSPixelSize size, CSSPixels border_box_top, Vector glyphs) : m_layout_node(layout_node) , m_start(start) , m_length(length) , m_offset(offset) , m_size(size) , m_border_box_top(border_box_top) - , m_border_box_bottom(border_box_bottom) , m_glyph_run(adopt_ref(*new Gfx::GlyphRun(move(glyphs)))) { } @@ -69,7 +68,6 @@ private: CSSPixelPoint m_offset; CSSPixelSize m_size; CSSPixels m_border_box_top { 0 }; - CSSPixels m_border_box_bottom { 0 }; CSSPixels m_baseline { 0 }; NonnullRefPtr m_glyph_run; };