Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(616)

Unified Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp

Issue 2617443002: Implement ThreadedInputConnection.deleteSurroundingTextInCodePoints() (Closed)
Patch Set: Address dcheng@'s review Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 75d3864d39fc5bd556736709e9f0dde073e3fd17..1602ec49ec5c70b04a4cf803bc2aaa0d87bae354 100644
--- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
+++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
@@ -1296,6 +1296,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);
}
« no previous file with comments | « third_party/WebKit/Source/web/WebLocalFrameImpl.h ('k') | third_party/WebKit/Source/web/tests/data/input_field_populated.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698