mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibWeb: Add more fast_is<T> helpers for DOM::Node subclasses
This commit is contained in:
committed by
Andreas Kling
parent
0e490e3352
commit
aecb144df0
Notes:
github-actions[bot]
2025-04-18 12:47:31 +00:00
Author: https://github.com/awesomekling Commit: https://github.com/LadybirdBrowser/ladybird/commit/aecb144df06 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4395
@@ -25,6 +25,8 @@ public:
|
||||
private:
|
||||
HTMLAreaElement(DOM::Document&, DOM::QualifiedName);
|
||||
|
||||
virtual bool is_html_area_element() const override { return true; }
|
||||
|
||||
virtual void initialize(JS::Realm&) override;
|
||||
virtual void visit_edges(Cell::Visitor&) override;
|
||||
|
||||
@@ -59,3 +61,8 @@ private:
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
namespace Web::DOM {
|
||||
template<>
|
||||
inline bool Node::fast_is<HTML::HTMLAreaElement>() const { return is_html_area_element(); }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user