mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
LibWeb: Dump PaintableBox dimensions for inline layout nodes
We were only dumping a PaintableBox' dimensions if its layout node was a Layout::Box as well, causing us to not dump the dimensions of paintables for inline nodes in the paintable tree.
This commit is contained in:
parent
5874b7a76f
commit
c03210e858
Notes:
github-actions[bot]
2025-07-03 20:18:26 +00:00
Author: https://github.com/gmta
Commit: c03210e858
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5286
54 changed files with 161 additions and 164 deletions
|
@ -919,17 +919,14 @@ void dump_tree(StringBuilder& builder, Painting::Paintable const& paintable, boo
|
|||
|
||||
builder.appendff("{}{} ({})", paintable.class_name(), color_off, paintable.layout_node().debug_description());
|
||||
|
||||
if (paintable.layout_node().is_box()) {
|
||||
auto const& paintable_box = static_cast<Painting::PaintableBox const&>(paintable);
|
||||
builder.appendff(" {}", paintable_box.absolute_border_box_rect());
|
||||
if (auto const* paintable_box = as_if<Painting::PaintableBox>(paintable)) {
|
||||
builder.appendff(" {}", paintable_box->absolute_border_box_rect());
|
||||
|
||||
if (paintable_box.has_scrollable_overflow()) {
|
||||
builder.appendff(" overflow: {}", paintable_box.scrollable_overflow_rect());
|
||||
}
|
||||
if (paintable_box->has_scrollable_overflow())
|
||||
builder.appendff(" overflow: {}", paintable_box->scrollable_overflow_rect());
|
||||
|
||||
if (!paintable_box.scroll_offset().is_zero()) {
|
||||
builder.appendff(" scroll-offset: {}", paintable_box.scroll_offset());
|
||||
}
|
||||
if (!paintable_box->scroll_offset().is_zero())
|
||||
builder.appendff(" scroll-offset: {}", paintable_box->scroll_offset());
|
||||
}
|
||||
builder.append("\n"sv);
|
||||
for (auto const* child = paintable.first_child(); child; child = child->next_sibling()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue