LibWeb: Simplify type traits for SVGGraphicsElement

This commit is contained in:
Andreas Kling 2020-07-26 17:22:24 +02:00
commit 1b1537c5a6
Notes: sideshowbarker 2024-07-19 04:36:06 +09:00
3 changed files with 14 additions and 15 deletions

View file

@ -82,6 +82,7 @@ public:
bool is_character_data() const { return type() == NodeType::TEXT_NODE || type() == NodeType::COMMENT_NODE; }
bool is_document_fragment() const { return type() == NodeType::DOCUMENT_FRAGMENT_NODE; }
bool is_parent_node() const { return is_element() || is_document() || is_document_fragment(); }
virtual bool is_svg_element() const { return false; }
RefPtr<Node> append_child(NonnullRefPtr<Node>, bool notify = true);
RefPtr<Node> insert_before(NonnullRefPtr<Node> node, RefPtr<Node> child, bool notify = true);