mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 15:47:45 +00:00
LibWeb: Add a helper function for checking if element is a shadow host
This commit is contained in:
parent
2cc108a15e
commit
01e2cc5330
3 changed files with 9 additions and 1 deletions
|
@ -131,6 +131,7 @@ public:
|
|||
|
||||
JS::NonnullGCPtr<HTMLCollection> get_elements_by_class_name(DeprecatedFlyString const&);
|
||||
|
||||
bool is_shadow_host() const;
|
||||
ShadowRoot* shadow_root_internal() { return m_shadow_root.ptr(); }
|
||||
ShadowRoot const* shadow_root_internal() const { return m_shadow_root.ptr(); }
|
||||
void set_shadow_root(JS::GCPtr<ShadowRoot>);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue