Index: Source/core/editing/ReplaceSelectionCommand.cpp |
diff --git a/Source/core/editing/ReplaceSelectionCommand.cpp b/Source/core/editing/ReplaceSelectionCommand.cpp |
index a6f0892d9c00ff73fa619122ec2f79e59fb2ff5b..c49a0ea2b2d950962964349a486f6d02757f1113 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; |
yoshinori.sano
2013/06/22 01:07:55
Reluctantly combined them because I got the follow
abarth-chromium
2013/06/22 06:45:02
That's fine.
|
} |
static bool isInterchangeConvertedSpaceSpan(const Node *node) |