[Win] Correct IME Regression after r141479
[WebKit-https.git] / Source / WebKit / win / WebView.cpp
index f9fff2bd6a5f745405dc919b18c9a5a57a9c3c01..08507a23d8e43113768aea09743da48d51c3ad1c 100644 (file)
@@ -5563,7 +5563,7 @@ void WebView::resetIME(Frame* targetFrame)
 void WebView::updateSelectionForIME()
 {
     Frame& targetFrame = m_page->focusController().focusedOrMainFrame();
-    if (!targetFrame.editor().cancelCompositionIfSelectionIsInvalid())
+    if (targetFrame.editor().cancelCompositionIfSelectionIsInvalid())
         resetIME(&targetFrame);
 }