Issue #2490 - WIP: part 9. Add a CSSRule Web IDL interface.

This commit is contained in:
Moonchild 2024-03-31 00:47:10 +01:00 committed by roytam1
commit 5a522d9145
13 changed files with 118 additions and 18 deletions

View file

@ -61,7 +61,7 @@ public:
virtual CSSStyleSheet* GetParentObject() override;
virtual nsIDOMCSSRule*
virtual css::Rule*
IndexedGetter(uint32_t aIndex, bool& aFound) override;
virtual uint32_t
Length() override;
@ -101,7 +101,7 @@ CSSRuleListImpl::Length()
return AssertedCast<uint32_t>(mStyleSheet->StyleRuleCount());
}
nsIDOMCSSRule*
css::Rule*
CSSRuleListImpl::IndexedGetter(uint32_t aIndex, bool& aFound)
{
aFound = false;
@ -1648,7 +1648,7 @@ CSSStyleSheet::Media()
return mMedia;
}
nsIDOMCSSRule*
css::Rule*
CSSStyleSheet::GetDOMOwnerRule() const
{
return mOwnerRule;