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

Unified Diff: content/browser/renderer_host/render_widget_host_view_aura.cc

Issue 313053007: Passing BackgroundColorSpan and UnderlineSpan from Clank to Blink. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync. Created 6 years, 6 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: 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 1cf441232b2ba7d02efefbec88681730eeb51d22..c7e4f08cebd306ee2a9c5d48e45e7843c6fcf330 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
@@ -1347,10 +1347,12 @@ void RenderWidgetHostViewAura::SetCompositionText(
for (std::vector<ui::CompositionUnderline>::const_iterator it =
composition.underlines.begin();
it != composition.underlines.end(); ++it) {
- underlines.push_back(blink::WebCompositionUnderline(it->start_offset,
- it->end_offset,
- it->color,
- it->thick));
+ underlines.push_back(
+ blink::WebCompositionUnderline(static_cast<unsigned>(it->start_offset),
+ static_cast<unsigned>(it->end_offset),
+ it->color,
+ it->thick,
+ it->background_color));
}
// TODO(suzhe): due to a bug of webkit, we can't use selection range with

Powered by Google App Engine
This is Rietveld 408576698