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

Unified Diff: Source/core/editing/FormatBlockCommand.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/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 c917832c3f6b459f45827c823dc10fc7b864ac45..da6add691b0f096193ddc85c5c271355407c6cc2 100644
--- a/Source/core/editing/FormatBlockCommand.h
+++ b/Source/core/editing/FormatBlockCommand.h
@@ -40,7 +40,7 @@ class VisiblePosition;
class FormatBlockCommand : public ApplyBlockElementCommand {
public:
- static PassRefPtr<FormatBlockCommand> create(Document* document, const QualifiedName& tagName)
+ static PassRefPtr<FormatBlockCommand> create(Document& document, const QualifiedName& tagName)
{
return adoptRef(new FormatBlockCommand(document, tagName));
}
@@ -51,7 +51,7 @@ public:
bool didApply() const { return m_didApply; }
private:
- FormatBlockCommand(Document*, const QualifiedName& tagName);
+ FormatBlockCommand(Document&, const QualifiedName& tagName);
void formatSelection(const VisiblePosition& startOfSelection, const VisiblePosition& endOfSelection);
void formatRange(const Position& start, const Position& end, const Position& endOfSelection, RefPtr<Element>&);
« 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