1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-19 23:15:08 +00:00

LibHTML: Collapse all-whitespace LayoutText into a single ' ' char.

This commit is contained in:
Andreas Kling 2019-06-15 23:17:08 +02:00
parent 8a0e21b22b
commit 0522a8f71c
3 changed files with 21 additions and 1 deletions

View file

@ -38,7 +38,7 @@ void dump_tree(const LayoutNode& node)
printf(" ");
printf("%s{%p}", node.class_name(), &node);
if (node.is_text())
printf(" \"%s\"", static_cast<const LayoutText&>(node).node().data().characters());
printf(" \"%s\"", static_cast<const LayoutText&>(node).text().characters());
printf("\n");
++indent;
node.for_each_child([](auto& child) {