mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-05 07:39:16 +00:00
LibHTML: Add layout() overrides for LayoutText and LayoutBlock.
This commit is contained in:
parent
8cb0c765ca
commit
2e2b97dc8a
Notes:
sideshowbarker
2024-07-19 13:32:42 +09:00
Author: https://github.com/awesomekling
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