summaryrefslogtreecommitdiff
path: root/Libraries/LibWeb/HTML/HTMLProgressElement.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-01-01 15:33:30 +0100
committerAndreas Kling <kling@serenityos.org>2021-01-01 15:33:30 +0100
commit865f524d5b1257ec77b2d17b93ec777799b4c4ab (patch)
treed99597100b4f0f8670aa0edd8ebe67d5ae60a35a /Libraries/LibWeb/HTML/HTMLProgressElement.h
parent7c3b6b10e4230a24dbe44df4f942d63ee27cac89 (diff)
downloadserenity-865f524d5b1257ec77b2d17b93ec777799b4c4ab.zip
AK+LibGUI+LibWeb: Remove AK::TypeTraits in favor of RTTI-based helpers
Now that we have RTTI in userspace, we can do away with all this manual hackery and use dynamic_cast. We keep the is<T> and downcast<T> helpers since they still provide good readability improvements. Note that unlike dynamic_cast<T>, downcast<T> does not fail in a recoverable way, but will assert if the object being casted is not a T.
Diffstat (limited to 'Libraries/LibWeb/HTML/HTMLProgressElement.h')
-rw-r--r--Libraries/LibWeb/HTML/HTMLProgressElement.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/Libraries/LibWeb/HTML/HTMLProgressElement.h b/Libraries/LibWeb/HTML/HTMLProgressElement.h
index 7987685763..cb18e317f2 100644
--- a/Libraries/LibWeb/HTML/HTMLProgressElement.h
+++ b/Libraries/LibWeb/HTML/HTMLProgressElement.h
@@ -39,7 +39,3 @@ public:
};
}
-
-AK_BEGIN_TYPE_TRAITS(Web::HTML::HTMLProgressElement)
-static bool is_type(const Web::DOM::Node& node) { return node.is_html_element() && downcast<Web::HTML::HTMLElement>(node).local_name() == Web::HTML::TagNames::progress; }
-AK_END_TYPE_TRAITS()