| Index: Source/core/editing/ReplaceSelectionCommand.cpp
|
| diff --git a/Source/core/editing/ReplaceSelectionCommand.cpp b/Source/core/editing/ReplaceSelectionCommand.cpp
|
| index 86b234cbe0e24405e95f05822bcf1d7893ac4d40..4474df03f4bf09692f8ad1eaa3c5a6d251aba3a1 100644
|
| --- a/Source/core/editing/ReplaceSelectionCommand.cpp
|
| +++ b/Source/core/editing/ReplaceSelectionCommand.cpp
|
| @@ -98,8 +98,7 @@ private:
|
| static bool isInterchangeNewlineNode(const Node *node)
|
| {
|
| DEFINE_STATIC_LOCAL(String, interchangeNewlineClassString, (AppleInterchangeNewline));
|
| - return node && node->hasTagName(brTag) &&
|
| - static_cast<const Element *>(node)->getAttribute(classAttr) == interchangeNewlineClassString;
|
| + return node && node->hasTagName(brTag) && toElement(node)->getAttribute(classAttr) == interchangeNewlineClassString;
|
| }
|
|
|
| static bool isInterchangeConvertedSpaceSpan(const Node *node)
|
|
|