mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 23:56:06 +00:00
LibWeb: Remove InlinePaintable
It was replaced with PaintableWithLines.
This commit is contained in:
parent
6a549f6270
commit
c097f53875
Notes:
github-actions[bot]
2024-10-16 18:26:34 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: c097f53875
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1829
17 changed files with 1 additions and 513 deletions
|
@ -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;
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue