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

Unified Diff: Source/core/editing/Editor.cpp

Issue 136193008: Remove unused Editor::*SelectionListLevel*(), and ModifySelectionListLevel.{cpp,h}. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 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/Editor.h ('k') | Source/core/editing/ModifySelectionListLevel.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
« no previous file with comments | « Source/core/editing/Editor.h ('k') | Source/core/editing/ModifySelectionListLevel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698