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

Unified Diff: Source/core/editing/DeleteFromTextNodeCommand.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
« no previous file with comments | « Source/core/editing/CreateLinkCommand.h ('k') | Source/core/editing/DeleteFromTextNodeCommand.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/DeleteFromTextNodeCommand.h
diff --git a/Source/core/editing/DeleteFromTextNodeCommand.h b/Source/core/editing/DeleteFromTextNodeCommand.h
index 45ac47d62f5e8a09ed334dd3df9ab98da1879bd8..11027e2562732938d3defa13c3e1fb9bc1ae3903 100644
--- a/Source/core/editing/DeleteFromTextNodeCommand.h
+++ b/Source/core/editing/DeleteFromTextNodeCommand.h
@@ -34,18 +34,20 @@ class Text;
class DeleteFromTextNodeCommand FINAL : public SimpleEditCommand {
public:
- static PassRefPtr<DeleteFromTextNodeCommand> create(PassRefPtrWillBeRawPtr<Text> node, unsigned offset, unsigned count)
+ static PassRefPtrWillBeRawPtr<DeleteFromTextNodeCommand> create(PassRefPtrWillBeRawPtr<Text> node, unsigned offset, unsigned count)
{
- return adoptRef(new DeleteFromTextNodeCommand(node, offset, count));
+ return adoptRefWillBeNoop(new DeleteFromTextNodeCommand(node, offset, count));
}
+ virtual void trace(Visitor*) OVERRIDE;
+
private:
DeleteFromTextNodeCommand(PassRefPtrWillBeRawPtr<Text>, unsigned offset, unsigned count);
virtual void doApply() OVERRIDE;
virtual void doUnapply() OVERRIDE;
- RefPtrWillBePersistent<Text> m_node;
+ RefPtrWillBeMember<Text> m_node;
unsigned m_offset;
unsigned m_count;
String m_text;
« no previous file with comments | « Source/core/editing/CreateLinkCommand.h ('k') | Source/core/editing/DeleteFromTextNodeCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698