diff --git a/Userland/Libraries/LibWeb/Layout/LineBoxFragment.cpp b/Userland/Libraries/LibWeb/Layout/LineBoxFragment.cpp index 91ca4342d5b..983ee10726e 100644 --- a/Userland/Libraries/LibWeb/Layout/LineBoxFragment.cpp +++ b/Userland/Libraries/LibWeb/Layout/LineBoxFragment.cpp @@ -67,14 +67,6 @@ StringView LineBoxFragment::text() const return verify_cast(layout_node()).text_for_rendering().bytes_as_string_view().substring_view(m_start, m_length); } -CSSPixelRect const LineBoxFragment::absolute_rect() const -{ - CSSPixelRect rect { {}, size() }; - rect.set_location(m_layout_node->containing_block()->paintable_box()->absolute_position()); - rect.translate_by(offset()); - return rect; -} - bool LineBoxFragment::is_atomic_inline() const { return layout_node().is_replaced_box() || (layout_node().display().is_inline_outside() && !layout_node().display().is_flow_inside()); diff --git a/Userland/Libraries/LibWeb/Layout/LineBoxFragment.h b/Userland/Libraries/LibWeb/Layout/LineBoxFragment.h index 309ed10e12f..5b132de0380 100644 --- a/Userland/Libraries/LibWeb/Layout/LineBoxFragment.h +++ b/Userland/Libraries/LibWeb/Layout/LineBoxFragment.h @@ -24,7 +24,6 @@ public: Node const& layout_node() const { return m_layout_node; } int start() const { return m_start; } int length() const { return m_length; } - CSSPixelRect const absolute_rect() const; CSSPixelPoint offset() const; CSSPixels inline_offset() const { return m_inline_offset; }