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 859ed9967d4c420907b7b2fb2ce70167129e7875..92f8dcc5ce9d8cde1447a4fc2fd2768b5d39866a 100644 |
--- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp |
+++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp |
@@ -1287,6 +1287,22 @@ void WebLocalFrameImpl::deleteSurroundingText(int before, int after) { |
frame()->inputMethodController().deleteSurroundingText(before, after); |
} |
+void WebLocalFrameImpl::deleteSurroundingTextInCodePoints(int before, |
+ int after) { |
+ TRACE_EVENT0("blink", "WebLocalFrameImpl::deleteSurroundingTextInCodePoints"); |
+ if (WebPlugin* plugin = focusedPluginIfInputMethodSupported()) { |
+ plugin->deleteSurroundingTextInCodePoints(before, after); |
+ return; |
+ } |
+ |
+ // TODO(editing-dev): The use of updateStyleAndLayoutIgnorePendingStylesheets |
+ // needs to be audited. See http://crbug.com/590369 for more details. |
+ frame()->document()->updateStyleAndLayoutIgnorePendingStylesheets(); |
+ |
+ frame()->inputMethodController().deleteSurroundingTextInCodePoints(before, |
+ after); |
+} |
+ |
void WebLocalFrameImpl::setCaretVisible(bool visible) { |
frame()->selection().setCaretVisible(visible); |
} |