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 83e913c1cda36c0faedecbcbe96c51febe5a3975..20eff0bad007c85f420be5f7024af316a866b4ea 100644 |
--- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp |
+++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp |
@@ -1220,6 +1220,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); |