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 9968c68515d7ec61a9d55bd57dafd61bcae1d0b7..98d7240e3a345960258567b1808f19b308707ef1 100644 |
--- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp |
+++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp |
@@ -1216,6 +1216,16 @@ void WebLocalFrameImpl::extendSelectionAndDelete(int before, int after) |
frame()->inputMethodController().extendSelectionAndDelete(before, after); |
} |
+void WebLocalFrameImpl::deleteSurroundingText(size_t before, size_t 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); |