| Index: trunk/Source/core/dom/Node.cpp
|
| ===================================================================
|
| --- trunk/Source/core/dom/Node.cpp (revision 169400)
|
| +++ trunk/Source/core/dom/Node.cpp (working copy)
|
| @@ -59,7 +59,6 @@
|
| #include "core/dom/shadow/InsertionPoint.h"
|
| #include "core/dom/shadow/ShadowRoot.h"
|
| #include "core/editing/htmlediting.h"
|
| -#include "core/editing/markup.h"
|
| #include "core/events/BeforeLoadEvent.h"
|
| #include "core/events/Event.h"
|
| #include "core/events/EventDispatchMediator.h"
|
| @@ -1498,7 +1497,11 @@
|
| case ELEMENT_NODE:
|
| case ATTRIBUTE_NODE:
|
| case DOCUMENT_FRAGMENT_NODE: {
|
| - replaceChildrenWithText(toContainerNode(this), text, ASSERT_NO_EXCEPTION);
|
| + RefPtr<ContainerNode> container = toContainerNode(this);
|
| + ChildListMutationScope mutation(*this);
|
| + container->removeChildren();
|
| + if (!text.isEmpty())
|
| + container->appendChild(document().createTextNode(text), ASSERT_NO_EXCEPTION);
|
| return;
|
| }
|
| case DOCUMENT_NODE:
|
|
|