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

Unified Diff: Source/core/editing/CreateLinkCommand.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/CompositeEditCommand.cpp ('k') | Source/core/editing/CreateLinkCommand.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/CreateLinkCommand.h
diff --git a/Source/core/editing/CreateLinkCommand.h b/Source/core/editing/CreateLinkCommand.h
index cfe9c99336e14a8a4e805bd42569dbf758cb7775..af489feb7e01eaefece19e4c27b0cf17dd498090 100644
--- a/Source/core/editing/CreateLinkCommand.h
+++ b/Source/core/editing/CreateLinkCommand.h
@@ -32,7 +32,7 @@ namespace WebCore {
class CreateLinkCommand : public CompositeEditCommand {
public:
- static PassRefPtr<CreateLinkCommand> create(Document* document, const String& linkURL)
+ static PassRefPtr<CreateLinkCommand> create(Document& document, const String& linkURL)
{
return adoptRef(new CreateLinkCommand(document, linkURL));
}
@@ -40,7 +40,7 @@ public:
bool isCreateLinkCommand() const { return true; }
private:
- CreateLinkCommand(Document*, const String& linkURL);
+ CreateLinkCommand(Document&, const String& linkURL);
virtual void doApply();
virtual EditAction editingAction() const { return EditActionCreateLink; }
« no previous file with comments | « Source/core/editing/CompositeEditCommand.cpp ('k') | Source/core/editing/CreateLinkCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698