Index: third_party/WebKit/Source/web/WebInputMethodControllerImpl.cpp |
diff --git a/third_party/WebKit/Source/web/WebInputMethodControllerImpl.cpp b/third_party/WebKit/Source/web/WebInputMethodControllerImpl.cpp |
index c876be88000948aa001fb1bebcf4a5e7a385e634..da1db9f5559815ea0ba3be8851d534e25f906cac 100644 |
--- a/third_party/WebKit/Source/web/WebInputMethodControllerImpl.cpp |
+++ b/third_party/WebKit/Source/web/WebInputMethodControllerImpl.cpp |
@@ -115,19 +115,23 @@ bool WebInputMethodControllerImpl::finishComposingText( |
: InputMethodController::DoNotKeepSelection); |
} |
-bool WebInputMethodControllerImpl::commitText(const WebString& text, |
- int relativeCaretPosition) { |
+bool WebInputMethodControllerImpl::commitText( |
+ const WebString& text, |
+ const WebVector<WebCompositionUnderline>& underlines, |
+ int relativeCaretPosition) { |
UserGestureIndicator gestureIndicator(DocumentUserGestureToken::create( |
frame()->document(), UserGestureToken::NewGesture)); |
if (WebPlugin* plugin = focusedPluginIfInputMethodSupported()) |
- return plugin->commitText(text, relativeCaretPosition); |
+ return plugin->commitText(text, underlines, relativeCaretPosition); |
// TODO(xiaochengh): The use of updateStyleAndLayoutIgnorePendingStylesheets |
// needs to be audited. See http://crbug.com/590369 for more details. |
frame()->document()->updateStyleAndLayoutIgnorePendingStylesheets(); |
- return inputMethodController().commitText(text, relativeCaretPosition); |
+ return inputMethodController().commitText( |
+ text, CompositionUnderlineVectorBuilder(underlines), |
+ relativeCaretPosition); |
} |
LocalFrame* WebInputMethodControllerImpl::frame() const { |