mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-05 18:52:56 +00:00
LibHTML: Implement LayoutText
This commit is contained in:
parent
9f8d776c70
commit
93003bfda1
Notes:
sideshowbarker
2024-07-19 11:55:53 +09:00
Author: https://github.com/bugaevc
Commit: 93003bfda1
Pull-request: https://github.com/SerenityOS/serenity/pull/609
Reviewed-by: https://github.com/awesomekling ✅
4 changed files with 190 additions and 4 deletions
|
@ -78,8 +78,10 @@ void dump_tree(const LayoutNode& layout_node)
|
|||
layout_node.style().border().bottom.to_px(),
|
||||
layout_node.style().margin().bottom.to_px());
|
||||
|
||||
if (layout_node.is_text())
|
||||
printf(" \"%s\"", static_cast<const LayoutText&>(layout_node).text().characters());
|
||||
if (layout_node.is_text()) {
|
||||
const LayoutText& layout_text = static_cast<const LayoutText&>(layout_node);
|
||||
printf(" \"%s\", %d runs", layout_text.text().characters(), layout_text.runs().size());
|
||||
}
|
||||
|
||||
printf("\n");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue