LibHTML: Add layout() overrides for LayoutText and LayoutBlock.

This commit is contained in:
Andreas Kling 2019-06-20 23:00:26 +02:00
commit 2e2b97dc8a
Notes: sideshowbarker 2024-07-19 13:32:42 +09:00
6 changed files with 38 additions and 0 deletions

View file

@ -17,12 +17,15 @@ int main(int argc, char** argv)
doc->build_layout_tree();
ASSERT(doc->layout_node());
printf("\033[33;1mLayout tree before layout:\033[0m\n");
dump_tree(*doc->layout_node());
auto frame = make<Frame>();
frame->set_document(doc);
frame->layout();
printf("\033[33;1mLayout tree after layout:\033[0m\n");
dump_tree(*doc->layout_node());
return 0;
}