From e053c790ba7bff39625c61dd8b1928f01fe51255 Mon Sep 17 00:00:00 2001 From: Pale Moon Date: Thu, 22 Sep 2016 21:06:56 +0200 Subject: Fix typo in nsNodeUtils::CloneAndAdopt(). --- dom/base/nsNodeUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dom') diff --git a/dom/base/nsNodeUtils.cpp b/dom/base/nsNodeUtils.cpp index 5da2f0e19..9c1f757fc 100644 --- a/dom/base/nsNodeUtils.cpp +++ b/dom/base/nsNodeUtils.cpp @@ -471,7 +471,7 @@ nsNodeUtils::CloneAndAdopt(nsINode *aNode, bool aClone, bool aDeep, JSAutoCompartment ac(cx, wrapper); rv = ReparentWrapper(cx, wrapper); if (NS_FAILED(rv)) { - aNode->mNodeInfo.swap(nodeInfo); + aNode->mNodeInfo.swap(newNodeInfo); return rv; } -- cgit v1.2.3