mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:27:45 +00:00
LibWeb: Track all namespace rules in a CSSStyleSheet, and expose them
This commit is contained in:
parent
a8096d33ec
commit
4b7b726888
2 changed files with 16 additions and 1 deletions
|
@ -50,6 +50,7 @@ public:
|
|||
void set_style_sheet_list(Badge<StyleSheetList>, StyleSheetList*);
|
||||
|
||||
Optional<StringView> default_namespace() const;
|
||||
Optional<StringView> namespace_uri(StringView namespace_prefix) const;
|
||||
|
||||
private:
|
||||
CSSStyleSheet(JS::Realm&, CSSRuleList&, MediaList&, Optional<AK::URL> location);
|
||||
|
@ -61,6 +62,7 @@ private:
|
|||
|
||||
JS::GCPtr<CSSRuleList> m_rules;
|
||||
JS::GCPtr<CSSNamespaceRule> m_default_namespace_rule;
|
||||
HashMap<FlyString, JS::GCPtr<CSSNamespaceRule>> m_namespace_rules;
|
||||
|
||||
JS::GCPtr<StyleSheetList> m_style_sheet_list;
|
||||
JS::GCPtr<CSSRule> m_owner_css_rule;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue