mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01: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
|
|
@ -38,7 +38,7 @@ void CSSNestedDeclarations::visit_edges(Cell::Visitor& visitor)
|
|||
visitor.visit(m_parent_style_rule);
|
||||
}
|
||||
|
||||
CSSStyleDeclaration* CSSNestedDeclarations::style()
|
||||
GC::Ref<CSSStyleProperties> CSSNestedDeclarations::style()
|
||||
{
|
||||
return m_declaration;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ public:
|
|||
|
||||
CSSStyleProperties const& declaration() const { return m_declaration; }
|
||||
|
||||
CSSStyleDeclaration* style();
|
||||
GC::Ref<CSSStyleProperties> style();
|
||||
|
||||
CSSStyleRule const& parent_style_rule() const;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,9 +1,8 @@
|
|||
#import <CSS/CSSRule.idl>
|
||||
#import <CSS/CSSStyleDeclaration.idl>
|
||||
#import <CSS/CSSStyleProperties.idl>
|
||||
|
||||
// https://drafts.csswg.org/css-nesting-1/#cssnesteddeclarations
|
||||
[Exposed=Window]
|
||||
interface CSSNestedDeclarations : CSSRule {
|
||||
// FIXME: Should be a CSSStyleProperties, once we have that
|
||||
[SameObject, PutForwards=cssText] readonly attribute CSSStyleDeclaration style;
|
||||
[SameObject, PutForwards=cssText] readonly attribute CSSStyleProperties style;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user