summaryrefslogtreecommitdiff
path: root/Source/WebCore/editing
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/editing')
-rw-r--r--Source/WebCore/editing/AlternativeTextController.h2
-rw-r--r--Source/WebCore/editing/BreakBlockquoteCommand.h2
-rw-r--r--Source/WebCore/editing/DeleteButton.h2
-rw-r--r--Source/WebCore/editing/DeleteButtonController.h2
-rw-r--r--Source/WebCore/editing/EditCommand.h4
-rw-r--r--Source/WebCore/editing/EditingBehavior.h2
-rw-r--r--Source/WebCore/editing/EditingStyle.h4
-rw-r--r--Source/WebCore/editing/Editor.h2
-rw-r--r--Source/WebCore/editing/FrameSelection.h2
-rw-r--r--Source/WebCore/editing/InsertLineBreakCommand.h2
-rw-r--r--Source/WebCore/editing/ModifySelectionListLevel.h4
-rw-r--r--Source/WebCore/editing/MoveSelectionCommand.cpp1
-rw-r--r--Source/WebCore/editing/RemoveFormatCommand.h2
-rw-r--r--Source/WebCore/editing/RemoveNodeCommand.cpp1
-rw-r--r--Source/WebCore/editing/RemoveNodeCommand.h2
-rw-r--r--Source/WebCore/editing/RemoveNodePreservingChildrenCommand.cpp1
-rw-r--r--Source/WebCore/editing/RemoveNodePreservingChildrenCommand.h2
-rw-r--r--Source/WebCore/editing/ReplaceNodeWithSpanCommand.h2
-rw-r--r--Source/WebCore/editing/TextInsertionBaseCommand.h2
-rw-r--r--Source/WebCore/editing/UndoManager.h2
-rw-r--r--Source/WebCore/editing/UnlinkCommand.h2
-rw-r--r--Source/WebCore/editing/WrapContentsInDummySpanCommand.h2
22 files changed, 22 insertions, 25 deletions
diff --git a/Source/WebCore/editing/AlternativeTextController.h b/Source/WebCore/editing/AlternativeTextController.h
index f6e6484d4..19334d690 100644
--- a/Source/WebCore/editing/AlternativeTextController.h
+++ b/Source/WebCore/editing/AlternativeTextController.h
@@ -94,7 +94,7 @@ class AlternativeTextController {
WTF_MAKE_NONCOPYABLE(AlternativeTextController);
WTF_MAKE_FAST_ALLOCATED;
public:
- AlternativeTextController(Frame*) UNLESS_ENABLED({ })
+ explicit AlternativeTextController(Frame*) UNLESS_ENABLED({ })
~AlternativeTextController() UNLESS_ENABLED({ })
void startAlternativeTextUITimer(AlternativeTextType) UNLESS_ENABLED({ })
diff --git a/Source/WebCore/editing/BreakBlockquoteCommand.h b/Source/WebCore/editing/BreakBlockquoteCommand.h
index 885e5d6c8..6ebac549b 100644
--- a/Source/WebCore/editing/BreakBlockquoteCommand.h
+++ b/Source/WebCore/editing/BreakBlockquoteCommand.h
@@ -38,7 +38,7 @@ public:
}
private:
- BreakBlockquoteCommand(Document*);
+ explicit BreakBlockquoteCommand(Document*);
virtual void doApply();
};
diff --git a/Source/WebCore/editing/DeleteButton.h b/Source/WebCore/editing/DeleteButton.h
index af6c1f405..d50d75f6c 100644
--- a/Source/WebCore/editing/DeleteButton.h
+++ b/Source/WebCore/editing/DeleteButton.h
@@ -35,7 +35,7 @@ public:
static PassRefPtr<DeleteButton> create(Document*);
private:
- DeleteButton(Document*);
+ explicit DeleteButton(Document*);
virtual void defaultEventHandler(Event*);
};
diff --git a/Source/WebCore/editing/DeleteButtonController.h b/Source/WebCore/editing/DeleteButtonController.h
index a7f7d1f35..f914fef64 100644
--- a/Source/WebCore/editing/DeleteButtonController.h
+++ b/Source/WebCore/editing/DeleteButtonController.h
@@ -39,7 +39,7 @@ class VisibleSelection;
class DeleteButtonController {
WTF_MAKE_NONCOPYABLE(DeleteButtonController); WTF_MAKE_FAST_ALLOCATED;
public:
- DeleteButtonController(Frame*);
+ explicit DeleteButtonController(Frame*);
static const char* const containerElementIdentifier;
diff --git a/Source/WebCore/editing/EditCommand.h b/Source/WebCore/editing/EditCommand.h
index 142012b7c..048d82539 100644
--- a/Source/WebCore/editing/EditCommand.h
+++ b/Source/WebCore/editing/EditCommand.h
@@ -58,7 +58,7 @@ public:
virtual void doApply() = 0;
protected:
- EditCommand(Document*);
+ explicit EditCommand(Document*);
EditCommand(Document*, const VisibleSelection&, const VisibleSelection&);
Document* document() const { return m_document.get(); }
@@ -83,7 +83,7 @@ public:
#endif
protected:
- SimpleEditCommand(Document* document) : EditCommand(document) { }
+ explicit SimpleEditCommand(Document* document) : EditCommand(document) { }
#ifndef NDEBUG
void addNodeAndDescendants(Node*, HashSet<Node*>&);
diff --git a/Source/WebCore/editing/EditingBehavior.h b/Source/WebCore/editing/EditingBehavior.h
index bbf68f503..941430fa2 100644
--- a/Source/WebCore/editing/EditingBehavior.h
+++ b/Source/WebCore/editing/EditingBehavior.h
@@ -28,7 +28,7 @@ namespace WebCore {
class EditingBehavior {
public:
- EditingBehavior(EditingBehaviorType type)
+ explicit EditingBehavior(EditingBehaviorType type)
: m_type(type)
{
}
diff --git a/Source/WebCore/editing/EditingStyle.h b/Source/WebCore/editing/EditingStyle.h
index 177c2a007..00e9d574a 100644
--- a/Source/WebCore/editing/EditingStyle.h
+++ b/Source/WebCore/editing/EditingStyle.h
@@ -150,8 +150,8 @@ private:
EditingStyle();
EditingStyle(Node*, PropertiesToInclude);
EditingStyle(const Position&, PropertiesToInclude);
- EditingStyle(const StylePropertySet*);
- EditingStyle(const CSSStyleDeclaration*);
+ explicit EditingStyle(const StylePropertySet*);
+ explicit EditingStyle(const CSSStyleDeclaration*);
EditingStyle(CSSPropertyID, const String& value);
void init(Node*, PropertiesToInclude);
void removeTextFillAndStrokeColorsIfNeeded(RenderStyle*);
diff --git a/Source/WebCore/editing/Editor.h b/Source/WebCore/editing/Editor.h
index c55555599..bdd382954 100644
--- a/Source/WebCore/editing/Editor.h
+++ b/Source/WebCore/editing/Editor.h
@@ -86,7 +86,7 @@ enum EditorParagraphSeparator { EditorParagraphSeparatorIsDiv, EditorParagraphSe
class Editor : public FrameDestructionObserver {
public:
- Editor(Frame*);
+ explicit Editor(Frame*);
~Editor();
EditorClient* client() const;
diff --git a/Source/WebCore/editing/FrameSelection.h b/Source/WebCore/editing/FrameSelection.h
index 11b6e4614..4a5819448 100644
--- a/Source/WebCore/editing/FrameSelection.h
+++ b/Source/WebCore/editing/FrameSelection.h
@@ -131,7 +131,7 @@ public:
return static_cast<EUserTriggered>(options & UserTriggered);
}
- FrameSelection(Frame* = 0);
+ explicit FrameSelection(Frame* = 0);
Element* rootEditableElement() const { return m_selection.rootEditableElement(); }
Element* rootEditableElementOrDocumentElement() const;
diff --git a/Source/WebCore/editing/InsertLineBreakCommand.h b/Source/WebCore/editing/InsertLineBreakCommand.h
index 9e73add2d..f83fe0de7 100644
--- a/Source/WebCore/editing/InsertLineBreakCommand.h
+++ b/Source/WebCore/editing/InsertLineBreakCommand.h
@@ -38,7 +38,7 @@ public:
}
private:
- InsertLineBreakCommand(Document*);
+ explicit InsertLineBreakCommand(Document*);
virtual void doApply();
diff --git a/Source/WebCore/editing/ModifySelectionListLevel.h b/Source/WebCore/editing/ModifySelectionListLevel.h
index feefa91b2..d486eae3d 100644
--- a/Source/WebCore/editing/ModifySelectionListLevel.h
+++ b/Source/WebCore/editing/ModifySelectionListLevel.h
@@ -35,7 +35,7 @@ namespace WebCore {
// It is not used on its own.
class ModifySelectionListLevelCommand : public CompositeEditCommand {
protected:
- ModifySelectionListLevelCommand(Document*);
+ explicit ModifySelectionListLevelCommand(Document*);
void appendSiblingNodeRange(Node* startNode, Node* endNode, Element* newParent);
void insertSiblingNodeRangeBefore(Node* startNode, Node* endNode, Node* refNode);
@@ -82,7 +82,7 @@ private:
return adoptRef(new DecreaseSelectionListLevelCommand(document));
}
- DecreaseSelectionListLevelCommand(Document*);
+ explicit DecreaseSelectionListLevelCommand(Document*);
virtual void doApply();
};
diff --git a/Source/WebCore/editing/MoveSelectionCommand.cpp b/Source/WebCore/editing/MoveSelectionCommand.cpp
index 5bf545413..5a2143c63 100644
--- a/Source/WebCore/editing/MoveSelectionCommand.cpp
+++ b/Source/WebCore/editing/MoveSelectionCommand.cpp
@@ -26,7 +26,6 @@
#include "config.h"
#include "MoveSelectionCommand.h"
-#include "Document.h"
#include "DocumentFragment.h"
#include "ReplaceSelectionCommand.h"
diff --git a/Source/WebCore/editing/RemoveFormatCommand.h b/Source/WebCore/editing/RemoveFormatCommand.h
index daca2dbdc..cd446a819 100644
--- a/Source/WebCore/editing/RemoveFormatCommand.h
+++ b/Source/WebCore/editing/RemoveFormatCommand.h
@@ -38,7 +38,7 @@ public:
}
private:
- RemoveFormatCommand(Document*);
+ explicit RemoveFormatCommand(Document*);
virtual void doApply();
virtual EditAction editingAction() const { return EditActionUnspecified; }
diff --git a/Source/WebCore/editing/RemoveNodeCommand.cpp b/Source/WebCore/editing/RemoveNodeCommand.cpp
index 8be207061..19657ac0f 100644
--- a/Source/WebCore/editing/RemoveNodeCommand.cpp
+++ b/Source/WebCore/editing/RemoveNodeCommand.cpp
@@ -26,7 +26,6 @@
#include "config.h"
#include "RemoveNodeCommand.h"
-#include "Document.h"
#include "Node.h"
#include <wtf/Assertions.h>
diff --git a/Source/WebCore/editing/RemoveNodeCommand.h b/Source/WebCore/editing/RemoveNodeCommand.h
index 3eac0880d..fafb7ab3e 100644
--- a/Source/WebCore/editing/RemoveNodeCommand.h
+++ b/Source/WebCore/editing/RemoveNodeCommand.h
@@ -38,7 +38,7 @@ public:
}
private:
- RemoveNodeCommand(PassRefPtr<Node>);
+ explicit RemoveNodeCommand(PassRefPtr<Node>);
virtual void doApply() OVERRIDE;
virtual void doUnapply() OVERRIDE;
diff --git a/Source/WebCore/editing/RemoveNodePreservingChildrenCommand.cpp b/Source/WebCore/editing/RemoveNodePreservingChildrenCommand.cpp
index 281fdbdf3..1452f8803 100644
--- a/Source/WebCore/editing/RemoveNodePreservingChildrenCommand.cpp
+++ b/Source/WebCore/editing/RemoveNodePreservingChildrenCommand.cpp
@@ -26,7 +26,6 @@
#include "config.h"
#include "RemoveNodePreservingChildrenCommand.h"
-#include "Document.h"
#include "Node.h"
#include <wtf/Assertions.h>
diff --git a/Source/WebCore/editing/RemoveNodePreservingChildrenCommand.h b/Source/WebCore/editing/RemoveNodePreservingChildrenCommand.h
index d2b635f63..ba3c8200b 100644
--- a/Source/WebCore/editing/RemoveNodePreservingChildrenCommand.h
+++ b/Source/WebCore/editing/RemoveNodePreservingChildrenCommand.h
@@ -38,7 +38,7 @@ public:
}
private:
- RemoveNodePreservingChildrenCommand(PassRefPtr<Node>);
+ explicit RemoveNodePreservingChildrenCommand(PassRefPtr<Node>);
virtual void doApply();
diff --git a/Source/WebCore/editing/ReplaceNodeWithSpanCommand.h b/Source/WebCore/editing/ReplaceNodeWithSpanCommand.h
index 0f1bf70aa..b05422a54 100644
--- a/Source/WebCore/editing/ReplaceNodeWithSpanCommand.h
+++ b/Source/WebCore/editing/ReplaceNodeWithSpanCommand.h
@@ -48,7 +48,7 @@ public:
HTMLElement* spanElement() { return m_spanElement.get(); }
private:
- ReplaceNodeWithSpanCommand(PassRefPtr<HTMLElement>);
+ explicit ReplaceNodeWithSpanCommand(PassRefPtr<HTMLElement>);
virtual void doApply() OVERRIDE;
virtual void doUnapply() OVERRIDE;
diff --git a/Source/WebCore/editing/TextInsertionBaseCommand.h b/Source/WebCore/editing/TextInsertionBaseCommand.h
index 9dff6dc4e..2a33d2341 100644
--- a/Source/WebCore/editing/TextInsertionBaseCommand.h
+++ b/Source/WebCore/editing/TextInsertionBaseCommand.h
@@ -39,7 +39,7 @@ public:
virtual ~TextInsertionBaseCommand() { };
protected:
- TextInsertionBaseCommand(Document*);
+ explicit TextInsertionBaseCommand(Document*);
static void applyTextInsertionCommand(Frame*, PassRefPtr<TextInsertionBaseCommand>, const VisibleSelection& selectionForInsertion, const VisibleSelection& endingSelection);
};
diff --git a/Source/WebCore/editing/UndoManager.h b/Source/WebCore/editing/UndoManager.h
index 5b6246806..56638cdfc 100644
--- a/Source/WebCore/editing/UndoManager.h
+++ b/Source/WebCore/editing/UndoManager.h
@@ -53,7 +53,7 @@ public:
void clearRedo();
private:
- UndoManager(Node* host);
+ explicit UndoManager(Node* host);
Node* m_undoScopeHost;
};
diff --git a/Source/WebCore/editing/UnlinkCommand.h b/Source/WebCore/editing/UnlinkCommand.h
index f3d560fb4..8647ee8df 100644
--- a/Source/WebCore/editing/UnlinkCommand.h
+++ b/Source/WebCore/editing/UnlinkCommand.h
@@ -38,7 +38,7 @@ public:
}
private:
- UnlinkCommand(Document*);
+ explicit UnlinkCommand(Document*);
virtual void doApply();
virtual EditAction editingAction() const { return EditActionUnlink; }
diff --git a/Source/WebCore/editing/WrapContentsInDummySpanCommand.h b/Source/WebCore/editing/WrapContentsInDummySpanCommand.h
index eccf0ec8c..f4d6bef69 100644
--- a/Source/WebCore/editing/WrapContentsInDummySpanCommand.h
+++ b/Source/WebCore/editing/WrapContentsInDummySpanCommand.h
@@ -40,7 +40,7 @@ public:
}
private:
- WrapContentsInDummySpanCommand(PassRefPtr<Element>);
+ explicit WrapContentsInDummySpanCommand(PassRefPtr<Element>);
virtual void doApply() OVERRIDE;
virtual void doUnapply() OVERRIDE;