mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-30 16:28:48 +00:00
LibJS+LibWeb: Add fast_is<T> helpers for HTML::Script class family
This commit is contained in:
parent
e7b6b84648
commit
a9e415b3c4
Notes:
github-actions[bot]
2025-04-18 12:47:51 +00:00
Author: https://github.com/awesomekling
Commit: a9e415b3c4
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4395
4 changed files with 27 additions and 0 deletions
|
@ -42,6 +42,7 @@ protected:
|
|||
virtual void visit_edges(Visitor&) override;
|
||||
|
||||
private:
|
||||
virtual bool is_script() const final { return true; }
|
||||
virtual void visit_host_defined_self(JS::Cell::Visitor&) override;
|
||||
|
||||
Optional<URL::URL> m_base_url;
|
||||
|
@ -56,3 +57,6 @@ private:
|
|||
};
|
||||
|
||||
}
|
||||
|
||||
template<>
|
||||
inline bool JS::Script::HostDefined::fast_is<Web::HTML::Script>() const { return is_script(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue