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

Unified Diff: Source/core/editing/SplitTextNodeContainingElementCommand.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/SplitTextNodeContainingElementCommand.cpp
diff --git a/Source/core/editing/SplitTextNodeContainingElementCommand.cpp b/Source/core/editing/SplitTextNodeContainingElementCommand.cpp
index 0c800632a43b1ee7b50f14d7bcefbd7c92eb600e..62231d6552acd7fceeb32e505978fc540492f07d 100644
--- a/Source/core/editing/SplitTextNodeContainingElementCommand.cpp
+++ b/Source/core/editing/SplitTextNodeContainingElementCommand.cpp
@@ -60,7 +60,13 @@ void SplitTextNodeContainingElementCommand::doApply()
parent = toElement(firstChild);
}
- splitElement(parent, m_text);
+ splitElement(parent, m_text.get());
+}
+
+void SplitTextNodeContainingElementCommand::trace(Visitor* visitor)
+{
+ visitor->trace(m_text);
+ CompositeEditCommand::trace(visitor);
}
}
« no previous file with comments | « Source/core/editing/SplitTextNodeContainingElementCommand.h ('k') | Source/core/editing/TextInsertionBaseCommand.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698