mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-30 06:52:52 +00:00
LibWeb: Return correct type from CSSNestedDeclarations::style
We implement CSSStyleProperties so let's use it.
This commit is contained in:
parent
13ac6c4fde
commit
fe6d8131ae
Notes:
github-actions[bot]
2025-04-25 06:49:24 +00:00
Author: https://github.com/trflynn89
Commit: fe6d8131ae
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4462
3 changed files with 4 additions and 5 deletions
|
@ -38,7 +38,7 @@ void CSSNestedDeclarations::visit_edges(Cell::Visitor& visitor)
|
||||||
visitor.visit(m_parent_style_rule);
|
visitor.visit(m_parent_style_rule);
|
||||||
}
|
}
|
||||||
|
|
||||||
CSSStyleDeclaration* CSSNestedDeclarations::style()
|
GC::Ref<CSSStyleProperties> CSSNestedDeclarations::style()
|
||||||
{
|
{
|
||||||
return m_declaration;
|
return m_declaration;
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,7 +22,7 @@ public:
|
||||||
|
|
||||||
CSSStyleProperties const& declaration() const { return m_declaration; }
|
CSSStyleProperties const& declaration() const { return m_declaration; }
|
||||||
|
|
||||||
CSSStyleDeclaration* style();
|
GC::Ref<CSSStyleProperties> style();
|
||||||
|
|
||||||
CSSStyleRule const& parent_style_rule() const;
|
CSSStyleRule const& parent_style_rule() const;
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,8 @@
|
||||||
#import <CSS/CSSRule.idl>
|
#import <CSS/CSSRule.idl>
|
||||||
#import <CSS/CSSStyleDeclaration.idl>
|
#import <CSS/CSSStyleProperties.idl>
|
||||||
|
|
||||||
// https://drafts.csswg.org/css-nesting-1/#cssnesteddeclarations
|
// https://drafts.csswg.org/css-nesting-1/#cssnesteddeclarations
|
||||||
[Exposed=Window]
|
[Exposed=Window]
|
||||||
interface CSSNestedDeclarations : CSSRule {
|
interface CSSNestedDeclarations : CSSRule {
|
||||||
// FIXME: Should be a CSSStyleProperties, once we have that
|
[SameObject, PutForwards=cssText] readonly attribute CSSStyleProperties style;
|
||||||
[SameObject, PutForwards=cssText] readonly attribute CSSStyleDeclaration style;
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue