mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 21:48:13 +00:00
LibWeb: Make stacking context tree dumps more readable
Include the Layout::Node::debug_description() and the z-index.
This commit is contained in:
parent
15ed0ebdc6
commit
219e3b9235
1 changed files with 6 additions and 1 deletions
|
@ -230,7 +230,12 @@ void StackingContext::dump(int indent) const
|
|||
StringBuilder builder;
|
||||
for (int i = 0; i < indent; ++i)
|
||||
builder.append(' ');
|
||||
builder.appendff("SC for {}({}) {} [children: {}]", m_box.class_name(), m_box.dom_node() ? m_box.dom_node()->node_name().characters() : "(anonymous)", m_box.absolute_rect().to_string().characters(), m_children.size());
|
||||
builder.appendff("SC for {} {} [children: {}] (z-index: ", m_box.debug_description(), m_box.absolute_rect(), m_children.size());
|
||||
if (m_box.computed_values().z_index().has_value())
|
||||
builder.appendff("{}", m_box.computed_values().z_index().value());
|
||||
else
|
||||
builder.append("auto");
|
||||
builder.append(')');
|
||||
dbgln("{}", builder.string_view());
|
||||
for (auto& child : m_children)
|
||||
child->dump(indent + 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue