2009-02-10 Adam Treat <adam.treat@torchmobile.com>
authortreat@webkit.org <treat@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 10 Feb 2009 14:28:59 +0000 (14:28 +0000)
committertreat@webkit.org <treat@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 10 Feb 2009 14:28:59 +0000 (14:28 +0000)
        Reviewed by George Staikos.

        Minor code cleanup.

        * dom/ContainerNode.cpp:
        (WebCore::ContainerNode::replaceChild):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40816 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/dom/ContainerNode.cpp

index 4bfcfc8..9e46e3d 100644 (file)
@@ -1,5 +1,14 @@
 2009-02-10  Adam Treat  <adam.treat@torchmobile.com>
 
+        Reviewed by George Staikos.
+
+        Minor code cleanup.
+
+        * dom/ContainerNode.cpp:
+        (WebCore::ContainerNode::replaceChild):
+
+2009-02-10  Adam Treat  <adam.treat@torchmobile.com>
+
         Fix Qt build following r40793.
 
         * editing/qt/EditorQt.cpp:
index 59a22f4..2950fb3 100644 (file)
@@ -215,7 +215,7 @@ bool ContainerNode::replaceChild(PassRefPtr<Node> newChild, Node* oldChild, Exce
         if (Node* oldParent = child->parentNode())
             oldParent->removeChild(child.get(), ec);
         if (ec)
-            return 0;
+            return false;
 
         // Due to arbitrary code running in response to a DOM mutation event it's
         // possible that "prev" is no longer a child of "this".