1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 09:58:11 +00:00

LibWeb: Remove more hand-rolled type information :^)

Hoo boy, we've really accumulated a lot of this stuff.
This commit is contained in:
Andreas Kling 2021-01-01 18:12:33 +01:00
parent d2613403e0
commit 3bb0cb2202
15 changed files with 5 additions and 40 deletions

View file

@ -77,10 +77,6 @@ public:
bool is_document_fragment() const { return type() == NodeType::DOCUMENT_FRAGMENT_NODE; }
bool is_parent_node() const { return is_element() || is_document() || is_document_fragment(); }
bool is_slottable() const { return is_element() || is_text(); }
virtual bool is_svg_element() const { return false; }
virtual bool is_shadow_root() const { return false; }
virtual bool is_node() const final { return true; }
virtual bool is_editable() const;
@ -103,9 +99,6 @@ public:
String child_text_content() const;
virtual bool is_html_element() const { return false; }
virtual bool is_unknown_html_element() const { return false; }
Node* root();
const Node* root() const
{