LibWeb/CSS: Expose owning document of CSSStyleSheet

This will be needed for fetching images from CSS.
This commit is contained in:
Sam Atkins 2025-04-10 16:01:17 +01:00
parent f1af4bcc58
commit aebbb008c1
Notes: github-actions[bot] 2025-04-15 09:30:46 +00:00
2 changed files with 19 additions and 2 deletions

View file

@ -68,6 +68,7 @@ public:
void add_owning_document_or_shadow_root(DOM::Node& document_or_shadow_root);
void remove_owning_document_or_shadow_root(DOM::Node& document_or_shadow_root);
void invalidate_owners(DOM::StyleInvalidationReason);
GC::Ptr<DOM::Document> owning_document() const;
Optional<FlyString> default_namespace() const;
GC::Ptr<CSSNamespaceRule> default_namespace_rule() const { return m_default_namespace_rule; }