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

Unified Diff: Source/core/editing/ModifySelectionListLevel.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
Index: Source/core/editing/ModifySelectionListLevel.h
diff --git a/Source/core/editing/ModifySelectionListLevel.h b/Source/core/editing/ModifySelectionListLevel.h
index 9c2f5e779fa1ac5d9337972e30175a6f15d1a9a9..b8707281e4643a7b1340e3336cce9f71d46cc174 100644
--- a/Source/core/editing/ModifySelectionListLevel.h
+++ b/Source/core/editing/ModifySelectionListLevel.h
@@ -35,7 +35,7 @@ namespace WebCore {
// It is not used on its own.
class ModifySelectionListLevelCommand : public CompositeEditCommand {
protected:
- explicit ModifySelectionListLevelCommand(Document*);
+ explicit ModifySelectionListLevelCommand(Document&);
void appendSiblingNodeRange(Node* startNode, Node* endNode, Element* newParent);
void insertSiblingNodeRangeBefore(Node* startNode, Node* endNode, Node* refNode);
@@ -48,21 +48,21 @@ private:
// IncreaseSelectionListLevelCommand moves the selected list items one level deeper.
class IncreaseSelectionListLevelCommand : public ModifySelectionListLevelCommand {
public:
- static bool canIncreaseSelectionListLevel(Document*);
- static PassRefPtr<Node> increaseSelectionListLevel(Document*);
- static PassRefPtr<Node> increaseSelectionListLevelOrdered(Document*);
- static PassRefPtr<Node> increaseSelectionListLevelUnordered(Document*);
+ static bool canIncreaseSelectionListLevel(Document&);
+ static PassRefPtr<Node> increaseSelectionListLevel(Document&);
+ static PassRefPtr<Node> increaseSelectionListLevelOrdered(Document&);
+ static PassRefPtr<Node> increaseSelectionListLevelUnordered(Document&);
private:
enum Type { InheritedListType, OrderedList, UnorderedList };
- static PassRefPtr<Node> increaseSelectionListLevel(Document*, Type);
+ static PassRefPtr<Node> increaseSelectionListLevel(Document&, Type);
- static PassRefPtr<IncreaseSelectionListLevelCommand> create(Document* document, Type type)
+ static PassRefPtr<IncreaseSelectionListLevelCommand> create(Document& document, Type type)
{
return adoptRef(new IncreaseSelectionListLevelCommand(document, type));
}
- IncreaseSelectionListLevelCommand(Document*, Type);
+ IncreaseSelectionListLevelCommand(Document&, Type);
virtual void doApply();
@@ -73,16 +73,16 @@ private:
// DecreaseSelectionListLevelCommand moves the selected list items one level shallower.
class DecreaseSelectionListLevelCommand : public ModifySelectionListLevelCommand {
public:
- static bool canDecreaseSelectionListLevel(Document*);
- static void decreaseSelectionListLevel(Document*);
+ static bool canDecreaseSelectionListLevel(Document&);
+ static void decreaseSelectionListLevel(Document&);
private:
- static PassRefPtr<DecreaseSelectionListLevelCommand> create(Document* document)
+ static PassRefPtr<DecreaseSelectionListLevelCommand> create(Document& document)
{
return adoptRef(new DecreaseSelectionListLevelCommand(document));
}
- explicit DecreaseSelectionListLevelCommand(Document*);
+ explicit DecreaseSelectionListLevelCommand(Document&);
virtual void doApply();
};
« no previous file with comments | « Source/core/editing/MergeIdenticalElementsCommand.cpp ('k') | Source/core/editing/ModifySelectionListLevel.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698