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

Unified Diff: Source/core/editing/InsertTextCommand.h

Issue 23822003: Have EditCommand classes deal with Document references, not pointers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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/InsertParagraphSeparatorCommand.cpp ('k') | Source/core/editing/InsertTextCommand.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/InsertTextCommand.h
diff --git a/Source/core/editing/InsertTextCommand.h b/Source/core/editing/InsertTextCommand.h
index 3663bc46a5b2f9ddb0c32ee718a843473a71bc64..10c8d80ea49d290e314ac52e928361afa59edba2 100644
--- a/Source/core/editing/InsertTextCommand.h
+++ b/Source/core/editing/InsertTextCommand.h
@@ -48,21 +48,21 @@ public:
RebalanceAllWhitespaces
};
- static PassRefPtr<InsertTextCommand> create(Document* document, const String& text, bool selectInsertedText = false,
+ static PassRefPtr<InsertTextCommand> create(Document& document, const String& text, bool selectInsertedText = false,
RebalanceType rebalanceType = RebalanceLeadingAndTrailingWhitespaces)
{
return adoptRef(new InsertTextCommand(document, text, selectInsertedText, rebalanceType));
}
- static PassRefPtr<InsertTextCommand> createWithMarkerSupplier(Document* document, const String& text, PassRefPtr<TextInsertionMarkerSupplier> markerSupplier)
+ static PassRefPtr<InsertTextCommand> createWithMarkerSupplier(Document& document, const String& text, PassRefPtr<TextInsertionMarkerSupplier> markerSupplier)
{
return adoptRef(new InsertTextCommand(document, text, markerSupplier));
}
private:
- InsertTextCommand(Document*, const String& text, bool selectInsertedText, RebalanceType);
- InsertTextCommand(Document*, const String& text, PassRefPtr<TextInsertionMarkerSupplier>);
+ InsertTextCommand(Document&, const String& text, bool selectInsertedText, RebalanceType);
+ InsertTextCommand(Document&, const String& text, PassRefPtr<TextInsertionMarkerSupplier>);
void deleteCharacter();
« no previous file with comments | « Source/core/editing/InsertParagraphSeparatorCommand.cpp ('k') | Source/core/editing/InsertTextCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698