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

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

Issue 1889053003: Fix InputConnection.deleteSurroundingText() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: change for changwan@'s review Created 4 years, 5 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/WebLocalFrameImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
index 68290988d0e60bcbfdc241d3de062bb1099d008b..49f53a22598b5dcf356c52b66b3b0101817b2eff 100644
--- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
+++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
@@ -1222,6 +1222,16 @@ void WebLocalFrameImpl::extendSelectionAndDelete(int before, int after)
frame()->inputMethodController().extendSelectionAndDelete(before, after);
}
+void WebLocalFrameImpl::deleteSurroundingText(int before, int after)
+{
+ TRACE_EVENT0("blink", "WebLocalFrameImpl::deleteSurroundingText");
+ if (WebPlugin* plugin = focusedPluginIfInputMethodSupported()) {
+ plugin->deleteSurroundingText(before, after);
+ return;
+ }
+ frame()->inputMethodController().deleteSurroundingText(before, after);
+}
+
void WebLocalFrameImpl::setCaretVisible(bool visible)
{
frame()->selection().setCaretVisible(visible);

Powered by Google App Engine
This is Rietveld 408576698