1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 13:57:35 +00:00

LibWeb: Add Node.insertBefore(Node node, Node? child)

This commit is contained in:
Andreas Kling 2020-06-21 16:45:21 +02:00
parent 82a75bcf5f
commit 213e2793bd
4 changed files with 43 additions and 0 deletions

View file

@ -83,6 +83,7 @@ public:
bool is_parent_node() const { return is_element() || is_document() || is_document_fragment(); }
RefPtr<Node> append_child(NonnullRefPtr<Node>, bool notify = true);
RefPtr<Node> insert_before(NonnullRefPtr<Node> node, RefPtr<Node> child, bool notify = true);
virtual RefPtr<LayoutNode> create_layout_node(const StyleProperties* parent_style) const;