mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 23:38:38 +09:00
Issue #2490 - Part 8: Get rid of css::Rule::GetDOMRule.
This commit is contained in:
parent
fce04b3591
commit
bb2aaeac9f
11 changed files with 17 additions and 107 deletions
|
|
@ -112,7 +112,7 @@ CSSRuleListImpl::IndexedGetter(uint32_t aIndex, bool& aFound)
|
|||
css::Rule* rule = mStyleSheet->GetStyleRuleAt(aIndex);
|
||||
if (rule) {
|
||||
aFound = true;
|
||||
return rule->GetDOMRule();
|
||||
return rule;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1651,7 +1651,7 @@ CSSStyleSheet::Media()
|
|||
nsIDOMCSSRule*
|
||||
CSSStyleSheet::GetDOMOwnerRule() const
|
||||
{
|
||||
return mOwnerRule ? mOwnerRule->GetDOMRule() : nullptr;
|
||||
return mOwnerRule;
|
||||
}
|
||||
|
||||
CSSRuleList*
|
||||
|
|
@ -1814,11 +1814,6 @@ CSSStyleSheet::DeleteRuleInternal(uint32_t aIndex, ErrorResult& aRv)
|
|||
RefPtr<css::Rule> rule = mInner->mOrderedRules.ObjectAt(aIndex);
|
||||
if (rule) {
|
||||
mInner->mOrderedRules.RemoveObjectAt(aIndex);
|
||||
if (mDocument && mDocument->StyleSheetChangeEventsEnabled()) {
|
||||
// Force creation of the DOM rule, so that it can be put on the
|
||||
// StyleRuleRemoved event object.
|
||||
rule->GetDOMRule();
|
||||
}
|
||||
rule->SetStyleSheet(nullptr);
|
||||
DidDirty();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue