mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 05:15:45 +00:00
Bug 284889 OOM crash [@nsStyleContext::ApplyStyleFixups]
patch by b.jacques@planet.nl r=dbaron sr=dbaron a=bsmedberg
This commit is contained in:
parent
605a534168
commit
b34557451f
@ -308,6 +308,12 @@ nsStyleContext::GetUniqueStyleData(const nsStyleStructID& aSID)
|
||||
return nsnull;
|
||||
}
|
||||
|
||||
if (!result) {
|
||||
NS_WARNING("Ran out of memory while trying to allocate memory for a unique nsStyleStruct! "
|
||||
"Returning the non-unique data.");
|
||||
return NS_CONST_CAST(nsStyleStruct*, current);
|
||||
}
|
||||
|
||||
SetStyle(aSID, result);
|
||||
mBits &= ~nsCachedStyleData::GetBitForSID(aSID);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user