| Index: content/browser/renderer_host/render_widget_host_view_aura.cc
|
| diff --git a/content/browser/renderer_host/render_widget_host_view_aura.cc b/content/browser/renderer_host/render_widget_host_view_aura.cc
|
| index 8c52017ed595676ad3ff5f65a205e1aa2324dc7f..b7f97bfe88924134734fc60a105721726915281e 100644
|
| --- a/content/browser/renderer_host/render_widget_host_view_aura.cc
|
| +++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
|
| @@ -2107,13 +2107,13 @@ void RenderWidgetHostViewAura::SetCompositionText(
|
|
|
| // TODO(suzhe): convert both renderer_host and renderer to use
|
| // ui::CompositionText.
|
| - const std::vector<WebKit::WebCompositionUnderline>& underlines =
|
| - reinterpret_cast<const std::vector<WebKit::WebCompositionUnderline>&>(
|
| - composition.underlines);
|
| + const std::vector<WebKit::WebCompositionUnderline>* underlines =
|
| + bit_cast<const std::vector<WebKit::WebCompositionUnderline>*>(
|
| + &composition.underlines);
|
|
|
| // TODO(suzhe): due to a bug of webkit, we can't use selection range with
|
| // composition string. See: https://bugs.webkit.org/show_bug.cgi?id=37788
|
| - host_->ImeSetComposition(composition.text, underlines,
|
| + host_->ImeSetComposition(composition.text, *underlines,
|
| composition.selection.end(),
|
| composition.selection.end());
|
|
|
|
|