| Index: Source/WebCore/dom/ContainerNodeAlgorithms.h
|
| ===================================================================
|
| --- Source/WebCore/dom/ContainerNodeAlgorithms.h (revision 143487)
|
| +++ Source/WebCore/dom/ContainerNodeAlgorithms.h (working copy)
|
| @@ -162,9 +162,11 @@
|
| ASSERT(!n->m_deletionHasBegun);
|
|
|
| next = n->nextSibling();
|
| - n->setPreviousSibling(0);
|
| n->setNextSibling(0);
|
| n->setParentOrHostNode(0);
|
| + container->setFirstChild(next);
|
| + if (next)
|
| + next->setPreviousSibling(0);
|
|
|
| if (!n->refCount()) {
|
| #ifndef NDEBUG
|
| @@ -184,7 +186,6 @@
|
| }
|
| }
|
|
|
| - container->setFirstChild(0);
|
| container->setLastChild(0);
|
| }
|
|
|
|
|