diff --git a/mozilla/content/html/style/src/nsCSSStyleRule.cpp b/mozilla/content/html/style/src/nsCSSStyleRule.cpp index 622221b74f2..5a398221890 100644 --- a/mozilla/content/html/style/src/nsCSSStyleRule.cpp +++ b/mozilla/content/html/style/src/nsCSSStyleRule.cpp @@ -1118,9 +1118,6 @@ DOMCSSDeclarationImpl::ParseDeclaration(const nsAString& aDecl, getter_AddRefs(cssParser)); if (NS_SUCCEEDED(result)) { - nsCSSDeclaration* declClone = decl->Clone(); - NS_ENSURE_TRUE(declClone, NS_ERROR_OUT_OF_MEMORY); - if (aClearOldDecl) { // This should be done with decl->Clear() once such a method exists. nsAutoString propName; diff --git a/mozilla/layout/style/nsCSSStyleRule.cpp b/mozilla/layout/style/nsCSSStyleRule.cpp index 622221b74f2..5a398221890 100644 --- a/mozilla/layout/style/nsCSSStyleRule.cpp +++ b/mozilla/layout/style/nsCSSStyleRule.cpp @@ -1118,9 +1118,6 @@ DOMCSSDeclarationImpl::ParseDeclaration(const nsAString& aDecl, getter_AddRefs(cssParser)); if (NS_SUCCEEDED(result)) { - nsCSSDeclaration* declClone = decl->Clone(); - NS_ENSURE_TRUE(declClone, NS_ERROR_OUT_OF_MEMORY); - if (aClearOldDecl) { // This should be done with decl->Clear() once such a method exists. nsAutoString propName;