LibWeb: Remove InlinePaintable

It was replaced with PaintableWithLines.
This commit is contained in:
Aliaksandr Kalenik 2024-10-16 02:38:49 +02:00 committed by Alexander Kalenik
commit c097f53875
Notes: github-actions[bot] 2024-10-16 18:26:34 +00:00
17 changed files with 1 additions and 513 deletions

View file

@ -13,7 +13,6 @@
#include <LibWeb/Layout/InlineNode.h>
#include <LibWeb/Layout/LayoutState.h>
#include <LibWeb/Layout/Viewport.h>
#include <LibWeb/Painting/InlinePaintable.h>
#include <LibWeb/Painting/SVGPathPaintable.h>
#include <LibWeb/Painting/SVGSVGPaintable.h>
#include <LibWeb/Painting/TextPaintable.h>
@ -126,17 +125,6 @@ static CSSPixelRect measure_scrollable_overflow(Box const& box)
scrollable_overflow_rect.unite_vertically(child_scrollable_overflow);
}
return IterationDecision::Continue;
});
} else {
box.for_each_child([&scrollable_overflow_rect, &content_overflow_rect](Node const& child) {
if (child.first_paintable() && child.first_paintable()->is_inline_paintable()) {
for (auto const& fragment : static_cast<Painting::InlinePaintable const&>(*child.first_paintable()).fragments()) {
scrollable_overflow_rect = scrollable_overflow_rect.united(fragment.absolute_rect());
content_overflow_rect = content_overflow_rect.united(fragment.absolute_rect());
}
}
return IterationDecision::Continue;
});
}