mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-29 04:37:55 +00:00
LibHTML: Add layout() overrides for LayoutText and LayoutBlock.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user