Reduce use of deprecatedCharacters in WebCore
[WebKit-https.git] / Source / WebCore / editing / TypingCommand.cpp
index 3a6dba3..9329cdf 100644 (file)
@@ -155,7 +155,7 @@ void TypingCommand::insertText(Document& document, const String& text, Options o
     ASSERT(frame);
 
     if (!text.isEmpty())
-        frame->editor().updateMarkersForWordsAffectedByEditing(isSpaceOrNewline(text.deprecatedCharacters()[0]));
+        frame->editor().updateMarkersForWordsAffectedByEditing(isSpaceOrNewline(text[0]));
     
     insertText(document, text, frame->selection().selection(), options, composition);
 }