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

Unified Diff: Source/core/editing/ReplaceSelectionCommand.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/ReplaceNodeWithSpanCommand.cpp ('k') | Source/core/editing/SplitElementCommand.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « Source/core/editing/ReplaceNodeWithSpanCommand.cpp ('k') | Source/core/editing/SplitElementCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698