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)); |