mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:57:35 +00:00
LibWeb: Simplify type traits for SVGGraphicsElement
This commit is contained in:
parent
e0b8b4ac67
commit
1b1537c5a6
3 changed files with 14 additions and 15 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue