mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1167189: Cleanup NS_RUNTIMEABORT("OOM") in layout/. r=dbaron
This commit is contained in:
parent
0abef482c7
commit
7d76b79599
@ -737,7 +737,7 @@ CSSStyleSheetInner::CSSStyleSheetInner(CSSStyleSheet* aPrimarySheet,
|
||||
|
||||
mPrincipal = nsNullPrincipal::Create();
|
||||
if (!mPrincipal) {
|
||||
NS_RUNTIMEABORT("OOM");
|
||||
NS_RUNTIMEABORT("nsNullPrincipal::Init failed");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -313,9 +313,7 @@ void
|
||||
ImageLoader::AddImage(ImageLoader::Image* aImage)
|
||||
{
|
||||
NS_ASSERTION(!mImages.Contains(aImage), "Huh?");
|
||||
if (!mImages.PutEntry(aImage)) {
|
||||
NS_RUNTIMEABORT("OOM");
|
||||
}
|
||||
mImages.PutEntry(aImage);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -3113,9 +3113,6 @@ CSSParserImpl::ParseMediaQuery(eMediaQueryType aQueryType,
|
||||
// case insensitive from CSS - must be lower cased
|
||||
nsContentUtils::ASCIIToLower(mToken.mIdent);
|
||||
mediaType = do_GetAtom(mToken.mIdent);
|
||||
if (!mediaType) {
|
||||
NS_RUNTIMEABORT("do_GetAtom failed - out of memory?");
|
||||
}
|
||||
if (!gotNotOrOnly && mediaType == nsGkAtoms::_not) {
|
||||
gotNotOrOnly = true;
|
||||
query->SetNegated();
|
||||
@ -3256,9 +3253,6 @@ CSSParserImpl::ParseMediaQueryExpression(nsMediaQuery* aQuery)
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIAtom> mediaFeatureAtom = do_GetAtom(featureString);
|
||||
if (!mediaFeatureAtom) {
|
||||
NS_RUNTIMEABORT("do_GetAtom failed - out of memory?");
|
||||
}
|
||||
const nsMediaFeature *feature = nsMediaFeatures::features;
|
||||
for (; feature->mName; ++feature) {
|
||||
if (*(feature->mName) == mediaFeatureAtom) {
|
||||
@ -3618,9 +3612,6 @@ CSSParserImpl::ProcessNameSpace(const nsString& aPrefix,
|
||||
|
||||
if (!aPrefix.IsEmpty()) {
|
||||
prefix = do_GetAtom(aPrefix);
|
||||
if (!prefix) {
|
||||
NS_RUNTIMEABORT("do_GetAtom failed - out of memory?");
|
||||
}
|
||||
}
|
||||
|
||||
nsRefPtr<css::NameSpaceRule> rule = new css::NameSpaceRule(prefix, aURLSpec,
|
||||
@ -5544,9 +5535,6 @@ CSSParserImpl::ParsePseudoSelector(int32_t& aDataMask,
|
||||
buffer.Append(mToken.mIdent);
|
||||
nsContentUtils::ASCIIToLower(buffer);
|
||||
nsCOMPtr<nsIAtom> pseudo = do_GetAtom(buffer);
|
||||
if (!pseudo) {
|
||||
NS_RUNTIMEABORT("do_GetAtom failed - out of memory?");
|
||||
}
|
||||
|
||||
// stash away some info about this pseudo so we only have to get it once.
|
||||
bool isTreePseudo = false;
|
||||
@ -14889,9 +14877,6 @@ CSSParserImpl::GetNamespaceIdForPrefix(const nsString& aPrefix)
|
||||
if (mNameSpaceMap) {
|
||||
// user-specified identifiers are case-sensitive (bug 416106)
|
||||
nsCOMPtr<nsIAtom> prefix = do_GetAtom(aPrefix);
|
||||
if (!prefix) {
|
||||
NS_RUNTIMEABORT("do_GetAtom failed - out of memory?");
|
||||
}
|
||||
nameSpaceID = mNameSpaceMap->FindNameSpaceID(prefix);
|
||||
}
|
||||
// else no declared namespaces
|
||||
|
Loading…
Reference in New Issue
Block a user