| Index: Source/core/editing/ReplaceSelectionCommand.cpp
|
| diff --git a/Source/core/editing/ReplaceSelectionCommand.cpp b/Source/core/editing/ReplaceSelectionCommand.cpp
|
| index af2d6612c07395ca402293ce47fed3547dcfab5b..d09ae47f5f9e9f0f5e9655cf4267eb1b6d6aacaf 100644
|
| --- a/Source/core/editing/ReplaceSelectionCommand.cpp
|
| +++ b/Source/core/editing/ReplaceSelectionCommand.cpp
|
| @@ -241,15 +241,15 @@ void ReplacementFragment::insertNodeBefore(PassRefPtr<Node> node, Node* refNode)
|
| if (!parent)
|
| return;
|
|
|
| - parent->insertBefore(node, refNode, ASSERT_NO_EXCEPTION);
|
| + parent->insertBefore(node, refNode, ASSERT_NO_EXCEPTION, DeprecatedAttachNow);
|
| }
|
|
|
| PassRefPtr<Element> ReplacementFragment::insertFragmentForTestRendering(Node* rootEditableElement)
|
| {
|
| RefPtr<Element> holder = createDefaultParagraphElement(m_document.get());
|
|
|
| - holder->appendChild(m_fragment, ASSERT_NO_EXCEPTION);
|
| - rootEditableElement->appendChild(holder.get(), ASSERT_NO_EXCEPTION);
|
| + holder->appendChild(m_fragment, ASSERT_NO_EXCEPTION, DeprecatedAttachNow);
|
| + rootEditableElement->appendChild(holder.get(), ASSERT_NO_EXCEPTION, DeprecatedAttachNow);
|
| m_document->updateLayoutIgnorePendingStylesheets();
|
|
|
| return holder.release();
|
| @@ -262,7 +262,7 @@ void ReplacementFragment::restoreAndRemoveTestRenderingNodesToFragment(Element*
|
|
|
| while (RefPtr<Node> node = holder->firstChild()) {
|
| holder->removeChild(node.get(), ASSERT_NO_EXCEPTION);
|
| - m_fragment->appendChild(node.get(), ASSERT_NO_EXCEPTION);
|
| + m_fragment->appendChild(node.get(), ASSERT_NO_EXCEPTION, DeprecatedAttachNow);
|
| }
|
|
|
| removeNode(holder);
|
|
|