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

Unified Diff: Source/core/editing/AppendNodeCommand.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/dom/Position.cpp ('k') | Source/core/editing/AppendNodeCommand.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/AppendNodeCommand.h
diff --git a/Source/core/editing/AppendNodeCommand.h b/Source/core/editing/AppendNodeCommand.h
index fe353532bfd8e1b6e842950b62a5e20f630a49c1..17a2d9d7188493ce6e86d3ea15b19d488b43bb4f 100644
--- a/Source/core/editing/AppendNodeCommand.h
+++ b/Source/core/editing/AppendNodeCommand.h
@@ -32,19 +32,21 @@ namespace WebCore {
class AppendNodeCommand FINAL : public SimpleEditCommand {
public:
- static PassRefPtr<AppendNodeCommand> create(PassRefPtr<ContainerNode> parent, PassRefPtr<Node> node)
+ static PassRefPtrWillBeRawPtr<AppendNodeCommand> create(PassRefPtrWillBeRawPtr<ContainerNode> parent, PassRefPtrWillBeRawPtr<Node> node)
{
- return adoptRef(new AppendNodeCommand(parent, node));
+ return adoptRefWillBeNoop(new AppendNodeCommand(parent, node));
}
+ virtual void trace(Visitor*) OVERRIDE;
+
private:
- AppendNodeCommand(PassRefPtr<ContainerNode> parent, PassRefPtr<Node>);
+ AppendNodeCommand(PassRefPtrWillBeRawPtr<ContainerNode> parent, PassRefPtrWillBeRawPtr<Node>);
virtual void doApply() OVERRIDE;
virtual void doUnapply() OVERRIDE;
- RefPtr<ContainerNode> m_parent;
- RefPtr<Node> m_node;
+ RefPtrWillBeMember<ContainerNode> m_parent;
+ RefPtrWillBeMember<Node> m_node;
};
} // namespace WebCore
« no previous file with comments | « Source/core/dom/Position.cpp ('k') | Source/core/editing/AppendNodeCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698