| 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 b18c2cff14da172053e7338921c9c886f71464b5..e5b731408e95ad12d3c9062d0197181a4aaf33b5 100644
|
| --- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
|
| @@ -1217,6 +1217,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);
|
|
|