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

Unified Diff: Source/core/editing/InsertListCommand.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/InsertLineBreakCommand.cpp ('k') | Source/core/editing/InsertListCommand.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/InsertListCommand.h
diff --git a/Source/core/editing/InsertListCommand.h b/Source/core/editing/InsertListCommand.h
index 599b8daa501229b185a99a503add481daf31a4c3..23f1f9c13acac0550156a388555235a15e037678 100644
--- a/Source/core/editing/InsertListCommand.h
+++ b/Source/core/editing/InsertListCommand.h
@@ -36,13 +36,15 @@ class InsertListCommand FINAL : public CompositeEditCommand {
public:
enum Type { OrderedList, UnorderedList };
- static PassRefPtr<InsertListCommand> create(Document& document, Type listType)
+ static PassRefPtrWillBeRawPtr<InsertListCommand> create(Document& document, Type listType)
{
- return adoptRef(new InsertListCommand(document, listType));
+ return adoptRefWillBeNoop(new InsertListCommand(document, listType));
}
virtual bool preservesTypingStyle() const OVERRIDE { return true; }
+ virtual void trace(Visitor*) OVERRIDE;
+
private:
InsertListCommand(Document&, Type);
@@ -55,7 +57,8 @@ private:
void doApplyForSingleParagraph(bool forceCreateList, const QualifiedName&, Range& currentSelection);
void unlistifyParagraph(const VisiblePosition& originalStart, HTMLElement* listNode, Node* listChildNode);
PassRefPtrWillBeRawPtr<HTMLElement> listifyParagraph(const VisiblePosition& originalStart, const QualifiedName& listTag);
- RefPtrWillBePersistent<HTMLElement> m_listElement;
+
+ RefPtrWillBeMember<HTMLElement> m_listElement;
Type m_type;
};
« no previous file with comments | « Source/core/editing/InsertLineBreakCommand.cpp ('k') | Source/core/editing/InsertListCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698