Index: Source/core/editing/ReplaceSelectionCommand.cpp |
diff --git a/Source/core/editing/ReplaceSelectionCommand.cpp b/Source/core/editing/ReplaceSelectionCommand.cpp |
index af2d6612c07395ca402293ce47fed3547dcfab5b..92f95b737e860a096e39323a89948db1a4ce3943 100644 |
--- a/Source/core/editing/ReplaceSelectionCommand.cpp |
+++ b/Source/core/editing/ReplaceSelectionCommand.cpp |
@@ -895,8 +895,8 @@ void ReplaceSelectionCommand::doApply() |
return; |
// We can skip matching the style if the selection is plain text. |
- if ((selection.start().deprecatedNode()->renderer() && selection.start().deprecatedNode()->renderer()->style()->userModify() == READ_WRITE_PLAINTEXT_ONLY) |
- && (selection.end().deprecatedNode()->renderer() && selection.end().deprecatedNode()->renderer()->style()->userModify() == READ_WRITE_PLAINTEXT_ONLY)) |
+ if ((selection.start().renderer() && selection.start().renderer()->style()->userModify() == READ_WRITE_PLAINTEXT_ONLY) |
+ && (selection.end().renderer() && selection.end().renderer()->style()->userModify() == READ_WRITE_PLAINTEXT_ONLY)) |
m_matchStyle = false; |
if (m_matchStyle) { |