Issue #2490 - Part 8: Get rid of css::Rule::GetDOMRule.

This commit is contained in:
Moonchild 2024-03-30 22:32:33 +01:00 committed by roytam1
commit bb2aaeac9f
11 changed files with 17 additions and 107 deletions

View file

@ -1186,7 +1186,7 @@ DOMCSSDeclarationImpl::GetParentRule(nsIDOMCSSRule **aParent)
{
NS_ENSURE_ARG_POINTER(aParent);
NS_IF_ADDREF(*aParent = mRule->GetDOMRule());
NS_IF_ADDREF(*aParent = mRule);
return NS_OK;
}
@ -1355,12 +1355,6 @@ StyleRule::Clone() const
return clone.forget();
}
/* virtual */ nsIDOMCSSRule*
StyleRule::GetDOMRule()
{
return this;
}
void
StyleRule::SetDeclaration(Declaration* aDecl)
{