Andreas Kling
796e63b34c
LibHTML: Have TreeNode deref its children before deleting itself
...
This is definitely not the ideal ownership model here, but it's
something we'll have to iterate on as the engine grows.
At least this prevents us from leaking the entire world. :^)
2019-10-09 21:58:38 +02:00
Andreas Kling
159507f2a6
LibHTML: Move is_ancestor_of() from LayoutNode to TreeNode
...
This way it becomes available to all the different TreeNode subclasses.
2019-10-09 21:33:34 +02:00
Andreas Kling
fc53867937
LibHTML: Add basic <!DOCTYPE> parsing and a DocumentType class
...
Plus, Document::fixup() will now make sure that the document always
starts with a doctype node, followed by an <html> element.
2019-10-09 20:17:01 +02:00
Andreas Kling
7912592f89
LibHTML: Add inserted_into() and removed_from() TreeNode callbacks
...
These will be called when a Node or LayoutNode is inserted or removed
from a tree. They get the parent node as an argument.
2019-09-29 17:40:39 +02:00
Sergey Bugaev
c1ef63379c
LibHTML: Add Document::normalize()
...
This method wraps the document tree in <html> and <body> elements if needed.
2019-09-28 18:29:42 +02:00
Andreas Kling
04b9dc2d30
Libraries: Create top level directory for libraries.
...
Things were getting a little crowded in the project root, so this patch
moves the Lib*/ directories into Libraries/.
2019-07-04 16:16:50 +02:00