mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 923251 - Part c: Make nsCSSStyleSheet::AppendAllChildSheets return void; r=heycam
This commit is contained in:
parent
eafd14c859
commit
63ed46994e
@ -1528,16 +1528,13 @@ nsCSSStyleSheet::EnsureUniqueInner()
|
||||
return eUniqueInner_ClonedInner;
|
||||
}
|
||||
|
||||
bool
|
||||
void
|
||||
nsCSSStyleSheet::AppendAllChildSheets(nsTArray<nsCSSStyleSheet*>& aArray)
|
||||
{
|
||||
for (nsCSSStyleSheet* child = mInner->mFirstChild; child;
|
||||
child = child->mNext) {
|
||||
if (!aArray.AppendElement(child)) {
|
||||
return false;
|
||||
}
|
||||
aArray.AppendElement(child);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
already_AddRefed<nsCSSStyleSheet>
|
||||
|
@ -225,9 +225,8 @@ public:
|
||||
};
|
||||
EnsureUniqueInnerResult EnsureUniqueInner();
|
||||
|
||||
// Append all of this sheet's child sheets to aArray. Return true
|
||||
// on success and false on allocation failure.
|
||||
bool AppendAllChildSheets(nsTArray<nsCSSStyleSheet*>& aArray);
|
||||
// Append all of this sheet's child sheets to aArray.
|
||||
void AppendAllChildSheets(nsTArray<nsCSSStyleSheet*>& aArray);
|
||||
|
||||
bool UseForPresentation(nsPresContext* aPresContext,
|
||||
nsMediaQueryResultCacheKey& aKey) const;
|
||||
|
@ -2026,9 +2026,7 @@ nsStyleSet::EnsureUniqueInnerOnCSSSheets()
|
||||
}
|
||||
|
||||
// Enqueue all the sheet's children.
|
||||
if (!sheet->AppendAllChildSheets(queue)) {
|
||||
return nsCSSStyleSheet::eUniqueInner_CloneFailed;
|
||||
}
|
||||
sheet->AppendAllChildSheets(queue);
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user