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

Unified Diff: Source/core/editing/MergeIdenticalElementsCommand.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
« no previous file with comments | « Source/core/editing/MergeIdenticalElementsCommand.h ('k') | Source/core/editing/MoveSelectionCommand.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/MergeIdenticalElementsCommand.cpp
diff --git a/Source/core/editing/MergeIdenticalElementsCommand.cpp b/Source/core/editing/MergeIdenticalElementsCommand.cpp
index e512319ee524712abe1c4714ee218b1a5f017431..da7214bc40500fa5d7642c0357d30613ad9d3773 100644
--- a/Source/core/editing/MergeIdenticalElementsCommand.cpp
+++ b/Source/core/editing/MergeIdenticalElementsCommand.cpp
@@ -32,7 +32,7 @@
namespace WebCore {
-MergeIdenticalElementsCommand::MergeIdenticalElementsCommand(PassRefPtr<Element> first, PassRefPtr<Element> second)
+MergeIdenticalElementsCommand::MergeIdenticalElementsCommand(PassRefPtrWillBeRawPtr<Element> first, PassRefPtrWillBeRawPtr<Element> second)
: SimpleEditCommand(first->document())
, m_element1(first)
, m_element2(second)
@@ -86,4 +86,12 @@ void MergeIdenticalElementsCommand::doUnapply()
m_element1->appendChild(children[i].release(), exceptionState);
}
+void MergeIdenticalElementsCommand::trace(Visitor* visitor)
+{
+ visitor->trace(m_element1);
+ visitor->trace(m_element2);
+ visitor->trace(m_atChild);
+ SimpleEditCommand::trace(visitor);
+}
+
} // namespace WebCore
« no previous file with comments | « Source/core/editing/MergeIdenticalElementsCommand.h ('k') | Source/core/editing/MoveSelectionCommand.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698