Index: Source/core/editing/ApplyStyleCommand.h |
diff --git a/Source/core/editing/ApplyStyleCommand.h b/Source/core/editing/ApplyStyleCommand.h |
index 99d3490c57149c3496c8204062ed3dcc4dc07c03..46ed5b977afb30f47e2da5de0108de85da2e0250 100644 |
--- a/Source/core/editing/ApplyStyleCommand.h |
+++ b/Source/core/editing/ApplyStyleCommand.h |
@@ -48,11 +48,11 @@ public: |
enum EAddStyledElement { AddStyledElement, DoNotAddStyledElement }; |
typedef bool (*IsInlineElementToRemoveFunction)(const Element*); |
- static PassRefPtr<ApplyStyleCommand> create(Document* document, const EditingStyle* style, EditAction action = EditActionChangeAttributes, EPropertyLevel level = PropertyDefault) |
+ static PassRefPtr<ApplyStyleCommand> create(Document& document, const EditingStyle* style, EditAction action = EditActionChangeAttributes, EPropertyLevel level = PropertyDefault) |
{ |
return adoptRef(new ApplyStyleCommand(document, style, action, level)); |
} |
- static PassRefPtr<ApplyStyleCommand> create(Document* document, const EditingStyle* style, const Position& start, const Position& end, EditAction action = EditActionChangeAttributes, EPropertyLevel level = PropertyDefault) |
+ static PassRefPtr<ApplyStyleCommand> create(Document& document, const EditingStyle* style, const Position& start, const Position& end, EditAction action = EditActionChangeAttributes, EPropertyLevel level = PropertyDefault) |
{ |
return adoptRef(new ApplyStyleCommand(document, style, start, end, action, level)); |
} |
@@ -60,16 +60,16 @@ public: |
{ |
return adoptRef(new ApplyStyleCommand(element, removeOnly, action)); |
} |
- static PassRefPtr<ApplyStyleCommand> create(Document* document, const EditingStyle* style, IsInlineElementToRemoveFunction isInlineElementToRemoveFunction, EditAction action = EditActionChangeAttributes) |
+ static PassRefPtr<ApplyStyleCommand> create(Document& document, const EditingStyle* style, IsInlineElementToRemoveFunction isInlineElementToRemoveFunction, EditAction action = EditActionChangeAttributes) |
{ |
return adoptRef(new ApplyStyleCommand(document, style, isInlineElementToRemoveFunction, action)); |
} |
private: |
- ApplyStyleCommand(Document*, const EditingStyle*, EditAction, EPropertyLevel); |
- ApplyStyleCommand(Document*, const EditingStyle*, const Position& start, const Position& end, EditAction, EPropertyLevel); |
+ ApplyStyleCommand(Document&, const EditingStyle*, EditAction, EPropertyLevel); |
+ ApplyStyleCommand(Document&, const EditingStyle*, const Position& start, const Position& end, EditAction, EPropertyLevel); |
ApplyStyleCommand(PassRefPtr<Element>, bool removeOnly, EditAction); |
- ApplyStyleCommand(Document*, const EditingStyle*, bool (*isInlineElementToRemove)(const Element*), EditAction); |
+ ApplyStyleCommand(Document&, const EditingStyle*, bool (*isInlineElementToRemove)(const Element*), EditAction); |
virtual void doApply(); |
virtual EditAction editingAction() const; |