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

Unified Diff: Source/core/editing/FormatBlockCommand.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/EditorCommand.cpp ('k') | Source/core/editing/FormatBlockCommand.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/FormatBlockCommand.h
diff --git a/Source/core/editing/FormatBlockCommand.h b/Source/core/editing/FormatBlockCommand.h
index e18bbfa2fe6894770be185f3c7bf799b681dbf72..65b7cb756af81f49755214dbe5463131e3337009 100644
--- a/Source/core/editing/FormatBlockCommand.h
+++ b/Source/core/editing/FormatBlockCommand.h
@@ -40,9 +40,9 @@ class VisiblePosition;
class FormatBlockCommand FINAL : public ApplyBlockElementCommand {
public:
- static PassRefPtr<FormatBlockCommand> create(Document& document, const QualifiedName& tagName)
+ static PassRefPtrWillBeRawPtr<FormatBlockCommand> create(Document& document, const QualifiedName& tagName)
{
- return adoptRef(new FormatBlockCommand(document, tagName));
+ return adoptRefWillBeNoop(new FormatBlockCommand(document, tagName));
}
virtual bool preservesTypingStyle() const OVERRIDE { return true; }
@@ -54,7 +54,7 @@ private:
FormatBlockCommand(Document&, const QualifiedName& tagName);
virtual void formatSelection(const VisiblePosition& startOfSelection, const VisiblePosition& endOfSelection) OVERRIDE;
- virtual void formatRange(const Position& start, const Position& end, const Position& endOfSelection, RefPtr<Element>&) OVERRIDE;
+ virtual void formatRange(const Position& start, const Position& end, const Position& endOfSelection, RefPtrWillBeRawPtr<Element>&) OVERRIDE;
virtual EditAction editingAction() const OVERRIDE { return EditActionFormatBlock; }
bool m_didApply;
« no previous file with comments | « Source/core/editing/EditorCommand.cpp ('k') | Source/core/editing/FormatBlockCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698