Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(807)

Unified Diff: Source/core/editing/SplitElementCommand.cpp

Issue 22880029: Make AttachBehavior a required argument. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/editing/ReplaceSelectionCommand.cpp ('k') | Source/core/editing/SplitTextNodeCommand.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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))
« no previous file with comments | « Source/core/editing/ReplaceSelectionCommand.cpp ('k') | Source/core/editing/SplitTextNodeCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698