зеркало из https://github.com/mozilla/pjs.git
Fix bug 197090; foo.style.background="" would throw instead of just doing
nothing. r+sr=dbaron
This commit is contained in:
Родитель
8de7ed4458
Коммит
98a2c50cf4
|
@ -83,6 +83,11 @@ nsDOMCSSAttributeDeclaration::RemoveProperty(const nsAString& aPropertyName,
|
|||
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
rv = SetCSSDeclaration(decl, PR_TRUE);
|
||||
} else {
|
||||
// RemoveProperty will throw in all sorts of situations -- eg if
|
||||
// the property is a shorthand one. Do not propagate its return
|
||||
// value to callers.
|
||||
rv = NS_OK;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -83,6 +83,11 @@ nsDOMCSSAttributeDeclaration::RemoveProperty(const nsAString& aPropertyName,
|
|||
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
rv = SetCSSDeclaration(decl, PR_TRUE);
|
||||
} else {
|
||||
// RemoveProperty will throw in all sorts of situations -- eg if
|
||||
// the property is a shorthand one. Do not propagate its return
|
||||
// value to callers.
|
||||
rv = NS_OK;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче