mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-06 01:26:22 +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
|
@ -64,7 +64,6 @@
|
|||
#include <LibWeb/Layout/Viewport.h>
|
||||
#include <LibWeb/Namespace.h>
|
||||
#include <LibWeb/Page/Page.h>
|
||||
#include <LibWeb/Painting/InlinePaintable.h>
|
||||
#include <LibWeb/Painting/PaintableBox.h>
|
||||
#include <LibWeb/Painting/ViewportPaintable.h>
|
||||
#include <LibWeb/WebIDL/AbstractOperations.h>
|
||||
|
@ -1000,16 +999,6 @@ JS::NonnullGCPtr<Geometry::DOMRectList> Element::get_client_rects() const
|
|||
.translated(paintable_box->transform_origin())
|
||||
.translated(-scroll_offset);
|
||||
rects.append(Geometry::DOMRect::create(realm(), transformed_rect.to_type<float>()));
|
||||
} else if (paintable && is<Painting::InlinePaintable>(*paintable)) {
|
||||
auto const& inline_paintable = static_cast<Painting::InlinePaintable const&>(*paintable);
|
||||
|
||||
if (auto enclosing_scroll_offset = inline_paintable.enclosing_scroll_frame(); enclosing_scroll_offset) {
|
||||
scroll_offset.translate_by(-enclosing_scroll_offset->cumulative_offset());
|
||||
}
|
||||
|
||||
auto absolute_rect = inline_paintable.bounding_rect();
|
||||
absolute_rect.translate_by(-scroll_offset);
|
||||
rects.append(Geometry::DOMRect::create(realm(), transform.map(absolute_rect.to_type<float>())));
|
||||
} else if (paintable) {
|
||||
dbgln("FIXME: Failed to get client rects for element ({})", debug_description());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue