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(); }