Not reviewed, follow up to r104586: fix assertion within the loop.
authorpfeldman@chromium.org <pfeldman@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 10 Jan 2012 18:23:13 +0000 (18:23 +0000)
committerpfeldman@chromium.org <pfeldman@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 10 Jan 2012 18:23:13 +0000 (18:23 +0000)
* inspector/DOMEditor.cpp:
(WebCore::DOMEditor::patchChildren):

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

Source/WebCore/ChangeLog
Source/WebCore/inspector/DOMEditor.cpp

index 4359f65..49d2e04 100644 (file)
@@ -1,3 +1,10 @@
+2012-01-10  Pavel Feldman  <pfeldman@google.com>
+
+        Not reviewed, follow up to r104586: fix assertion within the loop.
+
+        * inspector/DOMEditor.cpp:
+        (WebCore::DOMEditor::patchChildren):
+
 2012-01-10  Brady Eidson  <beidson@apple.com>
 
         <rdar://problem/9328684> and https://bugs.webkit.org/show_bug.cgi?id=62764
index d0ce363..6209fdb 100644 (file)
@@ -232,7 +232,8 @@ bool DOMEditor::patchChildren(ContainerNode* oldParent, Vector<OwnPtr<NodeDigest
 
         ExceptionCode ec = 0;
         oldParent->insertBefore(newList[i]->m_node, oldParent->childNode(i + offset), ec);
-        return !ec;
+        if (ec)
+            return false;
     }
 
     return true;