When asked to remove a property that doesn't exist, don't try too hard (and crash). b=245572 r+sr=bryner

git-svn-id: svn://10.0.0.236/trunk@157526 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dbaron%dbaron.org
2004-06-07 19:30:54 +00:00
parent e0c9e56180
commit 777631c031
2 changed files with 6 additions and 0 deletions

View File

@@ -198,6 +198,9 @@ nsDOMCSSDeclaration::RemoveProperty(const nsAString& aPropertyName,
}
nsCSSProperty prop = nsCSSProps::LookupProperty(aPropertyName);
if (prop == eCSSProperty_UNKNOWN) {
return NS_OK;
}
decl->GetValue(prop, aReturn);