From dc47d01fdc62a1ee319310e2b11c26b8ebe8899d Mon Sep 17 00:00:00 2001 From: Aliaksandr Kalenik Date: Wed, 31 Jan 2024 05:31:21 +0100 Subject: [PATCH] LibWeb: Remove contained_by_inline_node flag in PaintableFragment No longer used after we made inline paintables own their fragments. --- Userland/Libraries/LibWeb/Painting/PaintableBox.cpp | 4 ---- Userland/Libraries/LibWeb/Painting/PaintableFragment.h | 3 --- 2 files changed, 7 deletions(-) diff --git a/Userland/Libraries/LibWeb/Painting/PaintableBox.cpp b/Userland/Libraries/LibWeb/Painting/PaintableBox.cpp index 2e1667e56e..8969dcfd0c 100644 --- a/Userland/Libraries/LibWeb/Painting/PaintableBox.cpp +++ b/Userland/Libraries/LibWeb/Painting/PaintableBox.cpp @@ -627,15 +627,11 @@ void PaintableWithLines::paint(PaintContext& context, PaintPhase phase) const // FIXME: Find a smarter way to do this? if (phase == PaintPhase::Foreground) { for (auto& fragment : fragments()) { - if (fragment.contained_by_inline_node()) - continue; paint_text_shadow(context, fragment, fragment.shadows()); } } for (auto const& fragment : m_fragments) { - if (fragment.contained_by_inline_node()) - continue; auto fragment_absolute_rect = fragment.absolute_rect(); auto fragment_absolute_device_rect = context.enclosing_device_rect(fragment_absolute_rect); if (context.should_show_line_box_borders()) { diff --git a/Userland/Libraries/LibWeb/Painting/PaintableFragment.h b/Userland/Libraries/LibWeb/Painting/PaintableFragment.h index dcad8dca84..d1b1684627 100644 --- a/Userland/Libraries/LibWeb/Painting/PaintableFragment.h +++ b/Userland/Libraries/LibWeb/Painting/PaintableFragment.h @@ -42,9 +42,6 @@ public: CSSPixelRect selection_rect(Gfx::Font const&) const; - bool contained_by_inline_node() const { return m_contained_by_inline_node; } - void set_contained_by_inline_node() { m_contained_by_inline_node = true; } - CSSPixels width() const { return m_size.width(); } CSSPixels height() const { return m_size.height(); }