Index: Source/core/editing/Editor.cpp |
diff --git a/Source/core/editing/Editor.cpp b/Source/core/editing/Editor.cpp |
index 8b0f7568779378b8e82bade5050d70543d557ab6..617b3d6cdaf1634cad7d82500b8390c1ba8414d5 100644 |
--- a/Source/core/editing/Editor.cpp |
+++ b/Source/core/editing/Editor.cpp |
@@ -47,7 +47,6 @@ |
#include "core/editing/IndentOutdentCommand.h" |
#include "core/editing/InputMethodController.h" |
#include "core/editing/InsertListCommand.h" |
-#include "core/editing/ModifySelectionListLevel.h" |
#include "core/editing/RemoveFormatCommand.h" |
#include "core/editing/RenderedPosition.h" |
#include "core/editing/ReplaceSelectionCommand.h" |
@@ -595,61 +594,6 @@ PassRefPtr<Node> Editor::insertUnorderedList() |
return newList; |
} |
-bool Editor::canIncreaseSelectionListLevel() |
-{ |
- ASSERT(m_frame.document()); |
- return canEditRichly() && IncreaseSelectionListLevelCommand::canIncreaseSelectionListLevel(*m_frame.document()); |
-} |
- |
-bool Editor::canDecreaseSelectionListLevel() |
-{ |
- ASSERT(m_frame.document()); |
- return canEditRichly() && DecreaseSelectionListLevelCommand::canDecreaseSelectionListLevel(*m_frame.document()); |
-} |
- |
-PassRefPtr<Node> Editor::increaseSelectionListLevel() |
-{ |
- if (!canEditRichly() || m_frame.selection().isNone()) |
- return 0; |
- |
- ASSERT(m_frame.document()); |
- RefPtr<Node> newList = IncreaseSelectionListLevelCommand::increaseSelectionListLevel(*m_frame.document()); |
- revealSelectionAfterEditingOperation(); |
- return newList; |
-} |
- |
-PassRefPtr<Node> Editor::increaseSelectionListLevelOrdered() |
-{ |
- if (!canEditRichly() || m_frame.selection().isNone()) |
- return 0; |
- |
- ASSERT(m_frame.document()); |
- RefPtr<Node> newList = IncreaseSelectionListLevelCommand::increaseSelectionListLevelOrdered(*m_frame.document()); |
- revealSelectionAfterEditingOperation(); |
- return newList.release(); |
-} |
- |
-PassRefPtr<Node> Editor::increaseSelectionListLevelUnordered() |
-{ |
- if (!canEditRichly() || m_frame.selection().isNone()) |
- return 0; |
- |
- ASSERT(m_frame.document()); |
- RefPtr<Node> newList = IncreaseSelectionListLevelCommand::increaseSelectionListLevelUnordered(*m_frame.document()); |
- revealSelectionAfterEditingOperation(); |
- return newList.release(); |
-} |
- |
-void Editor::decreaseSelectionListLevel() |
-{ |
- if (!canEditRichly() || m_frame.selection().isNone()) |
- return; |
- |
- ASSERT(m_frame.document()); |
- DecreaseSelectionListLevelCommand::decreaseSelectionListLevel(*m_frame.document()); |
- revealSelectionAfterEditingOperation(); |
-} |
- |
void Editor::removeFormattingAndStyle() |
{ |
ASSERT(m_frame.document()); |