Index: Source/core/editing/ApplyStyleCommand.cpp |
diff --git a/Source/core/editing/ApplyStyleCommand.cpp b/Source/core/editing/ApplyStyleCommand.cpp |
index 1929775ec3b7519e5cef479c717fd7a6d3b77552..3bee94d30ebe385df2d5bc2ec3d9de5062792690 100644 |
--- a/Source/core/editing/ApplyStyleCommand.cpp |
+++ b/Source/core/editing/ApplyStyleCommand.cpp |
@@ -1298,12 +1298,10 @@ bool ApplyStyleCommand::mergeEndWithNextIfIdentical(const Position& start, const |
if (offsetIsBeforeLastNodeOffset(endOffset, endNode)) |
return false; |
- unsigned parentLastOffset = end.deprecatedNode()->parentNode()->childNodes()->length() - 1; |
if (end.deprecatedNode()->nextSibling()) |
return false; |
endNode = end.deprecatedNode()->parentNode(); |
- endOffset = parentLastOffset; |
} |
if (!endNode->isElementNode() || endNode->hasTagName(brTag)) |