Index: Source/core/editing/ReplaceSelectionCommand.cpp |
diff --git a/Source/core/editing/ReplaceSelectionCommand.cpp b/Source/core/editing/ReplaceSelectionCommand.cpp |
index 563995666cfccfe6f6319ae02fcfd19e63e5d57a..89bdcdaa1f6cb62cd3b1a19c9db7fcd850ad9ef1 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) { |