Bug 716215 - nsHTMLEditor::IsEmptyNodeImpl checks if the parent is a form widget instead of the child. r=Ms2ger; sr=ehsan
authorJignesh Kakadiya <jigneshhk1992@gmail.com>
Wed, 11 Jan 2012 09:23:09 +0100
changeset 85402 c42d08fdec34547f8302ca6d04f9fe8ea471eaa2
parent 85401 4fc86339a424b5aff60d4d6603a3ed1ba5c5cf37
child 85403 4de07a341aab9657b1e1437afe0756c9f7c436be
child 85487 fe35840e0000f2e5ef8718a0dc755858bc423c21
push id805
push userakeybl@mozilla.com
push dateWed, 01 Feb 2012 18:17:35 +0000
treeherdermozilla-aurora@6fb3bf232436 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersMs2ger, ehsan
bugs716215
milestone12.0a1
Bug 716215 - nsHTMLEditor::IsEmptyNodeImpl checks if the parent is a form widget instead of the child. r=Ms2ger; sr=ehsan
editor/libeditor/html/nsHTMLEditor.cpp
--- a/editor/libeditor/html/nsHTMLEditor.cpp
+++ b/editor/libeditor/html/nsHTMLEditor.cpp
@@ -4945,17 +4945,17 @@ nsHTMLEditor::IsEmptyNodeImpl( nsIDOMNod
           {
             if (nsHTMLEditUtils::IsList(node) || nsHTMLEditUtils::IsTable(node))
             { // break out if we find we aren't empty
               *outIsEmptyNode = false;
               return NS_OK;
             }
           }
           // 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;
           }
           
           bool isEmptyNode = true;
           res = IsEmptyNodeImpl(node, &isEmptyNode, aSingleBRDoesntCount, 
                                 aListOrCellNotEmpty, aSafeToAskFrames, aSeenBR);