mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-21 07:29:53 +00:00
LibWeb: Propagate CSSStyleSheet owning documents and shadow roots
Previously these were only stored on the root style sheet and were accessed by imported stylesheets via their owner rule. Propagating these to imported style sheets allows us to more easily know when they change for said imported style sheets.
This commit is contained in:
parent
3708fc6aa7
commit
9651969708
Notes:
github-actions[bot]
2025-10-16 09:28:43 +00:00
Author: https://github.com/Calme1709
Commit: 9651969708
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6482
Reviewed-by: https://github.com/tcl3 ✅
3 changed files with 25 additions and 7 deletions
|
@ -66,6 +66,7 @@ public:
|
|||
bool evaluate_media_queries(DOM::Document const&);
|
||||
void for_each_effective_keyframes_at_rule(Function<void(CSSKeyframesRule const&)> const& callback) const;
|
||||
|
||||
HashTable<GC::Ptr<DOM::Node>> owning_documents_or_shadow_roots() const { return m_owning_documents_or_shadow_roots; }
|
||||
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue