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

Unified Diff: Source/web/WebLocalFrameImpl.cpp

Issue 356173002: Get rid of redundant functions Editor::indent and outdent (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebLocalFrameImpl.cpp
diff --git a/Source/web/WebLocalFrameImpl.cpp b/Source/web/WebLocalFrameImpl.cpp
index e06ecff1eafe1df066479e45aa3588a14eeb1793..1f6faf02141b781864e355b02a28c3a238dd273f 100644
--- a/Source/web/WebLocalFrameImpl.cpp
+++ b/Source/web/WebLocalFrameImpl.cpp
@@ -1058,10 +1058,6 @@ bool WebLocalFrameImpl::executeCommand(const WebString& name, const WebNode& nod
if (command == "DeleteToEndOfParagraph") {
if (!frame()->editor().deleteWithDirection(DirectionForward, ParagraphBoundary, true, false))
frame()->editor().deleteWithDirection(DirectionForward, CharacterGranularity, true, false);
- } else if (command == "Indent") {
- frame()->editor().indent();
- } else if (command == "Outdent") {
- frame()->editor().outdent();
} else if (command == "DeleteBackward") {
result = frame()->editor().command(AtomicString("BackwardDelete")).execute();
} else if (command == "DeleteForward") {
« no previous file with comments | « Source/core/editing/Editor.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698