Bug 716215 - nsHTMLEditor::IsEmptyNodeImpl checks if the parent is a form widget instead of the child. r=Ms2ger; sr=ehsan

This commit is contained in:
Jignesh Kakadiya 2012-01-11 09:23:09 +01:00
parent 15265252aa
commit 1f6ddac8da

View File

@ -4950,7 +4950,7 @@ nsHTMLEditor::IsEmptyNodeImpl( nsIDOMNode *aNode,
}
}
// is it a form widget?
else if (nsHTMLEditUtils::IsFormWidget(aNode))
else if (nsHTMLEditUtils::IsFormWidget(node))
{ // break out if we find we aren't empty
*outIsEmptyNode = false;
return NS_OK;