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

Unified Diff: Source/core/editing/SimplifyMarkupCommand.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/SetNodeAttributeCommand.cpp ('k') | Source/core/editing/SimplifyMarkupCommand.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/SimplifyMarkupCommand.h
diff --git a/Source/core/editing/SimplifyMarkupCommand.h b/Source/core/editing/SimplifyMarkupCommand.h
index f5196900e0ff763dd478e7ac18c3fcf9c3fe6b53..24659f3b845c5cd0a2ab76f91a8eb58d24560ed5 100644
--- a/Source/core/editing/SimplifyMarkupCommand.h
+++ b/Source/core/editing/SimplifyMarkupCommand.h
@@ -32,19 +32,21 @@ namespace WebCore {
class SimplifyMarkupCommand FINAL : public CompositeEditCommand {
public:
- static PassRefPtr<SimplifyMarkupCommand> create(Document& document, Node* firstNode, Node* nodeAfterLast)
+ static PassRefPtrWillBeRawPtr<SimplifyMarkupCommand> create(Document& document, Node* firstNode, Node* nodeAfterLast)
{
- return adoptRef(new SimplifyMarkupCommand(document, firstNode, nodeAfterLast));
+ return adoptRefWillBeNoop(new SimplifyMarkupCommand(document, firstNode, nodeAfterLast));
}
+ virtual void trace(Visitor*) OVERRIDE;
+
private:
SimplifyMarkupCommand(Document&, Node* firstNode, Node* nodeAfterLast);
virtual void doApply() OVERRIDE;
- int pruneSubsequentAncestorsToRemove(Vector<RefPtr<Node> >& nodesToRemove, size_t startNodeIndex);
+ int pruneSubsequentAncestorsToRemove(WillBeHeapVector<RefPtrWillBeMember<Node> >& nodesToRemove, size_t startNodeIndex);
- RefPtr<Node> m_firstNode;
- RefPtr<Node> m_nodeAfterLast;
+ RefPtrWillBeMember<Node> m_firstNode;
+ RefPtrWillBeMember<Node> m_nodeAfterLast;
};
} // namespace WebCore
« no previous file with comments | « Source/core/editing/SetNodeAttributeCommand.cpp ('k') | Source/core/editing/SimplifyMarkupCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698