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

Unified Diff: Source/core/editing/SplitTextNodeContainingElementCommand.h

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.h
diff --git a/Source/core/editing/SplitTextNodeContainingElementCommand.h b/Source/core/editing/SplitTextNodeContainingElementCommand.h
index c4ffb1c9226079879ca0fac0e7d6a1eac2a8e3da..072ed1946cce93982dfd0f159eda8b5f9e9e849c 100644
--- a/Source/core/editing/SplitTextNodeContainingElementCommand.h
+++ b/Source/core/editing/SplitTextNodeContainingElementCommand.h
@@ -32,17 +32,19 @@ namespace WebCore {
class SplitTextNodeContainingElementCommand FINAL : public CompositeEditCommand {
public:
- static PassRefPtr<SplitTextNodeContainingElementCommand> create(PassRefPtrWillBeRawPtr<Text> node, int offset)
+ static PassRefPtrWillBeRawPtr<SplitTextNodeContainingElementCommand> create(PassRefPtrWillBeRawPtr<Text> node, int offset)
{
- return adoptRef(new SplitTextNodeContainingElementCommand(node, offset));
+ return adoptRefWillBeNoop(new SplitTextNodeContainingElementCommand(node, offset));
}
+ virtual void trace(Visitor*) OVERRIDE;
+
private:
SplitTextNodeContainingElementCommand(PassRefPtrWillBeRawPtr<Text>, int offset);
virtual void doApply() OVERRIDE;
- RefPtrWillBePersistent<Text> m_text;
+ RefPtrWillBeMember<Text> m_text;
int m_offset;
};
« no previous file with comments | « Source/core/editing/SplitTextNodeCommand.cpp ('k') | Source/core/editing/SplitTextNodeContainingElementCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698