mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-04 15:19:42 +00:00
LibHTML: Implement rendering
This commit is contained in:
parent
93003bfda1
commit
235dee8c42
Notes:
sideshowbarker
2024-07-19 11:55:46 +09:00
Author: https://github.com/bugaevc
Commit: 235dee8c42
Pull-request: https://github.com/SerenityOS/serenity/pull/609
Reviewed-by: https://github.com/awesomekling ✅
7 changed files with 62 additions and 0 deletions
|
@ -26,3 +26,11 @@ const LayoutBlock* LayoutNode::containing_block() const
|
|||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
void LayoutNode::render(RenderingContext& context)
|
||||
{
|
||||
// TODO: render our background and border
|
||||
for_each_child([&](auto& child) {
|
||||
child.render(context);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue