summaryrefslogtreecommitdiff
path: root/Libraries/LibHTML/Layout/LayoutNode.cpp
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@gmail.com>2019-09-25 12:40:37 +0300
committerAndreas Kling <awesomekling@gmail.com>2019-09-28 18:29:42 +0200
commit235dee8c421ee26db1bf3a0574975dc5be4c7de0 (patch)
treec7c3e5ac8a8b71c08374c1bf5656b9b6262b8625 /Libraries/LibHTML/Layout/LayoutNode.cpp
parent93003bfda1211288a1b9720e646d7f79dfa2f77c (diff)
downloadserenity-235dee8c421ee26db1bf3a0574975dc5be4c7de0.zip
LibHTML: Implement rendering
Diffstat (limited to 'Libraries/LibHTML/Layout/LayoutNode.cpp')
-rw-r--r--Libraries/LibHTML/Layout/LayoutNode.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/Libraries/LibHTML/Layout/LayoutNode.cpp b/Libraries/LibHTML/Layout/LayoutNode.cpp
index 0b7dc8bc68..e4500008f1 100644
--- a/Libraries/LibHTML/Layout/LayoutNode.cpp
+++ b/Libraries/LibHTML/Layout/LayoutNode.cpp
@@ -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);
+ });
+}