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

Unified Diff: Source/core/editing/commands/ApplyBlockElementCommand.cpp

Issue 1294543005: Move execCommand related files in core/editing/ related files into core/editing/commands/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-08-17T17:57:33 Created 5 years, 4 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
Index: Source/core/editing/commands/ApplyBlockElementCommand.cpp
diff --git a/Source/core/editing/ApplyBlockElementCommand.cpp b/Source/core/editing/commands/ApplyBlockElementCommand.cpp
similarity index 99%
rename from Source/core/editing/ApplyBlockElementCommand.cpp
rename to Source/core/editing/commands/ApplyBlockElementCommand.cpp
index d0195b5ce3b8c38d7cacc59c04758ac7484a9b86..b20c9f8d09596a3440576552ac08c21251bc2836 100644
--- a/Source/core/editing/ApplyBlockElementCommand.cpp
+++ b/Source/core/editing/commands/ApplyBlockElementCommand.cpp
@@ -25,7 +25,7 @@
*/
#include "config.h"
-#include "core/editing/ApplyBlockElementCommand.h"
+#include "core/editing/commands/ApplyBlockElementCommand.h"
#include "bindings/core/v8/ExceptionState.h"
#include "core/HTMLNames.h"
@@ -274,8 +274,9 @@ VisiblePosition ApplyBlockElementCommand::endOfNextParagrahSplittingTextNodesIfN
if (text->previousSibling()->isTextNode()
&& static_cast<unsigned>(m_endOfLastParagraph.offsetInContainerNode()) <= toText(text->previousSibling())->length())
m_endOfLastParagraph = Position(toText(text->previousSibling()), m_endOfLastParagraph.offsetInContainerNode());
- } else
+ } else {
m_endOfLastParagraph = Position(text.get(), m_endOfLastParagraph.offsetInContainerNode() - 1);
+ }
}
return VisiblePosition(Position(text.get(), position.offsetInContainerNode() - 1));

Powered by Google App Engine
This is Rietveld 408576698