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 999add96bc846f7222067e9a28d0b12df32c4259..e8a531ccc0c79b1d9df3cacfe994506704a6198d 100644 |
--- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp |
+++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp |
@@ -1304,6 +1304,15 @@ 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); |
} |