mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-16 15:21:56 +00:00
LibWeb: Add more fast_is<T> helpers for DOM::Node subclasses
This commit is contained in:
parent
0e490e3352
commit
aecb144df0
Notes:
github-actions[bot]
2025-04-18 12:47:31 +00:00
Author: https://github.com/awesomekling
Commit: aecb144df0
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4395
10 changed files with 68 additions and 1 deletions
|
@ -24,6 +24,8 @@ public:
|
|||
private:
|
||||
HTMLFrameSetElement(DOM::Document&, DOM::QualifiedName);
|
||||
|
||||
virtual bool is_html_frameset_element() const override { return true; }
|
||||
|
||||
virtual void adjust_computed_style(CSS::ComputedProperties&) override;
|
||||
|
||||
virtual void initialize(JS::Realm&) override;
|
||||
|
@ -37,3 +39,8 @@ private:
|
|||
};
|
||||
|
||||
}
|
||||
|
||||
namespace Web::DOM {
|
||||
template<>
|
||||
inline bool Node::fast_is<HTML::HTMLFrameSetElement>() const { return is_html_frameset_element(); }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue