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

This commit is contained in:
Andreas Kling 2019-06-15 23:17:08 +02:00
commit 0522a8f71c
Notes: sideshowbarker 2024-07-19 13:35:28 +09:00
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) {