1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:17:35 +00:00

LibWeb: Add a helper function for checking if element is a shadow host

This commit is contained in:
Karol Kosek 2023-01-28 20:33:36 +01:00 committed by Andreas Kling
parent 2cc108a15e
commit 01e2cc5330
3 changed files with 9 additions and 1 deletions

View file

@ -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>);