Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(245)

Unified Diff: third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp

Issue 2664603002: Remove replaceComposition() calls in finishComposingText. (Closed)
Patch Set: Rebase Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp b/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
index b015b9b24c3c74bcf88b809e27ac3f92d7c83155..0add5cabb94db1c4dfe3eeb821c5a934d742d889 100644
--- a/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
+++ b/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
@@ -472,12 +472,6 @@ void WebFrameWidgetImpl::setFocus(bool enable) {
if (focusedFrame) {
// Finish an ongoing composition to delete the composition node.
if (focusedFrame->inputMethodController().hasComposition()) {
- WebAutofillClient* autofillClient =
- WebLocalFrameImpl::fromFrame(focusedFrame)->autofillClient();
-
- if (autofillClient)
- autofillClient->setIgnoreTextChanges(true);
-
// TODO(xiaochengh): The use of
// updateStyleAndLayoutIgnorePendingStylesheets needs to be audited.
// See http://crbug.com/590369 for more details.
@@ -486,9 +480,6 @@ void WebFrameWidgetImpl::setFocus(bool enable) {
focusedFrame->inputMethodController().finishComposingText(
InputMethodController::KeepSelection);
-
- if (autofillClient)
- autofillClient->setIgnoreTextChanges(false);
}
m_imeAcceptEvents = false;
}
« no previous file with comments | « third_party/WebKit/Source/core/editing/InputMethodControllerTest.cpp ('k') | third_party/WebKit/Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698