LibHTML: Implement rendering

This commit is contained in:
Sergey Bugaev 2019-09-25 12:40:37 +03:00 committed by Andreas Kling
commit 235dee8c42
Notes: sideshowbarker 2024-07-19 11:55:46 +09:00
7 changed files with 62 additions and 0 deletions

View file

@ -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);
});
}