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

Unified Diff: Source/core/editing/SplitElementCommand.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/SpellCheckRequester.h ('k') | Source/core/editing/SplitElementCommand.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/SplitElementCommand.h
diff --git a/Source/core/editing/SplitElementCommand.h b/Source/core/editing/SplitElementCommand.h
index d7cac54aff3277a20d093aa1e8212d36064502de..228753d185839c98f83118a22c889da8c4a19af6 100644
--- a/Source/core/editing/SplitElementCommand.h
+++ b/Source/core/editing/SplitElementCommand.h
@@ -32,22 +32,24 @@ namespace WebCore {
class SplitElementCommand FINAL : public SimpleEditCommand {
public:
- static PassRefPtr<SplitElementCommand> create(PassRefPtr<Element> element, PassRefPtr<Node> splitPointChild)
+ static PassRefPtrWillBeRawPtr<SplitElementCommand> create(PassRefPtrWillBeRawPtr<Element> element, PassRefPtrWillBeRawPtr<Node> splitPointChild)
{
- return adoptRef(new SplitElementCommand(element, splitPointChild));
+ return adoptRefWillBeNoop(new SplitElementCommand(element, splitPointChild));
}
+ virtual void trace(Visitor*) OVERRIDE;
+
private:
- SplitElementCommand(PassRefPtr<Element>, PassRefPtr<Node> splitPointChild);
+ SplitElementCommand(PassRefPtrWillBeRawPtr<Element>, PassRefPtrWillBeRawPtr<Node> splitPointChild);
virtual void doApply() OVERRIDE;
virtual void doUnapply() OVERRIDE;
virtual void doReapply() OVERRIDE;
void executeApply();
- RefPtr<Element> m_element1;
- RefPtr<Element> m_element2;
- RefPtr<Node> m_atChild;
+ RefPtrWillBeMember<Element> m_element1;
+ RefPtrWillBeMember<Element> m_element2;
+ RefPtrWillBeMember<Node> m_atChild;
};
} // namespace WebCore
« no previous file with comments | « Source/core/editing/SpellCheckRequester.h ('k') | Source/core/editing/SplitElementCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698