Index: Source/core/editing/ApplyStyleCommand.cpp |
diff --git a/Source/core/editing/ApplyStyleCommand.cpp b/Source/core/editing/ApplyStyleCommand.cpp |
index 53ba1cd829e3c1590c636959a8d5b60405bba579..7966265ea792e6fbacca4610a9984e14cdaa0bfd 100644 |
--- a/Source/core/editing/ApplyStyleCommand.cpp |
+++ b/Source/core/editing/ApplyStyleCommand.cpp |
@@ -1309,8 +1309,8 @@ bool ApplyStyleCommand::mergeEndWithNextIfIdentical(const Position& start, const |
Node* nextSibling = endNode->nextSibling(); |
if (nextSibling && areIdenticalElements(endNode, nextSibling)) { |
- Element* nextElement = static_cast<Element *>(nextSibling); |
- Element* element = static_cast<Element *>(endNode); |
+ Element* nextElement = toElement(nextSibling); |
+ Element* element = toElement(endNode); |
Node* nextChild = nextElement->firstChild(); |
mergeIdenticalElements(element, nextElement); |