| Index: Source/core/editing/SplitElementCommand.cpp
|
| diff --git a/Source/core/editing/SplitElementCommand.cpp b/Source/core/editing/SplitElementCommand.cpp
|
| index 11ec640704ed3200e7a0b796325c58c20018db9a..f304953ee824f199d4256b5f0036169f2f98c225 100644
|
| --- a/Source/core/editing/SplitElementCommand.cpp
|
| +++ b/Source/core/editing/SplitElementCommand.cpp
|
| @@ -58,7 +58,7 @@ void SplitElementCommand::executeApply()
|
| ContainerNode* parent = m_element2->parentNode();
|
| if (!parent || !parent->rendererIsEditable())
|
| return;
|
| - parent->insertBefore(m_element1.get(), m_element2.get(), es);
|
| + parent->insertBefore(m_element1.get(), m_element2.get(), es, DeprecatedAttachNow);
|
| if (es.hadException())
|
| return;
|
|
|
| @@ -67,7 +67,7 @@ void SplitElementCommand::executeApply()
|
|
|
| size_t size = children.size();
|
| for (size_t i = 0; i < size; ++i)
|
| - m_element1->appendChild(children[i], es);
|
| + m_element1->appendChild(children[i], es, DeprecatedAttachNow);
|
| }
|
|
|
| void SplitElementCommand::doApply()
|
| @@ -90,7 +90,7 @@ void SplitElementCommand::doUnapply()
|
|
|
| size_t size = children.size();
|
| for (size_t i = 0; i < size; ++i)
|
| - m_element2->insertBefore(children[i].get(), refChild.get(), IGNORE_EXCEPTION);
|
| + m_element2->insertBefore(children[i].get(), refChild.get(), IGNORE_EXCEPTION, DeprecatedAttachNow);
|
|
|
| // Recover the id attribute of the original element.
|
| if (m_element1->hasAttribute(HTMLNames::idAttr))
|
|
|