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

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

Issue 299353004: Oilpan: move editing objects to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Make test wrapper class finalized Created 6 years, 7 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
Index: Source/core/editing/InsertNodeBeforeCommand.cpp
diff --git a/Source/core/editing/InsertNodeBeforeCommand.cpp b/Source/core/editing/InsertNodeBeforeCommand.cpp
index 862d541033e6cb1a7413dae61c40b50b0f5eeee4..ef3628a97aeeb01529f96e3608a8759acc5c3206 100644
--- a/Source/core/editing/InsertNodeBeforeCommand.cpp
+++ b/Source/core/editing/InsertNodeBeforeCommand.cpp
@@ -31,7 +31,7 @@
namespace WebCore {
-InsertNodeBeforeCommand::InsertNodeBeforeCommand(PassRefPtr<Node> insertChild, PassRefPtr<Node> refChild,
+InsertNodeBeforeCommand::InsertNodeBeforeCommand(PassRefPtrWillBeRawPtr<Node> insertChild, PassRefPtrWillBeRawPtr<Node> refChild,
ShouldAssumeContentIsAlwaysEditable shouldAssumeContentIsAlwaysEditable)
: SimpleEditCommand(refChild->document())
, m_insertChild(insertChild)
@@ -64,4 +64,11 @@ void InsertNodeBeforeCommand::doUnapply()
m_insertChild->remove(IGNORE_EXCEPTION);
}
+void InsertNodeBeforeCommand::trace(Visitor* visitor)
+{
+ visitor->trace(m_insertChild);
+ visitor->trace(m_refChild);
+ SimpleEditCommand::trace(visitor);
+}
+
}
« no previous file with comments | « Source/core/editing/InsertNodeBeforeCommand.h ('k') | Source/core/editing/InsertParagraphSeparatorCommand.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698