mirror of
https://github.com/RGBCube/serenity
synced 2025-07-19 04:27:40 +00:00
LibHTML: Add layout() overrides for LayoutText and LayoutBlock.
This commit is contained in:
parent
8cb0c765ca
commit
2e2b97dc8a
6 changed files with 38 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue