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

Unified Diff: ui/base/ime/input_method_chromeos.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: ui/base/ime/input_method_chromeos.cc
diff --git a/ui/base/ime/input_method_chromeos.cc b/ui/base/ime/input_method_chromeos.cc
index be946ed0dc8079ac364c80ba1bc10d720486708a..71a699e685bfe71197f5d6366f08a9c5f74b2364 100644
--- a/ui/base/ime/input_method_chromeos.cc
+++ b/ui/base/ime/input_method_chromeos.cc
@@ -609,7 +609,7 @@ void InputMethodChromeOS::ExtractCompositionText(
continue;
CompositionUnderline underline(
char16_offsets[start], char16_offsets[end],
- SK_ColorBLACK, false /* thick */);
+ SK_ColorBLACK, false /* thick */, SK_ColorTRANSPARENT);
if (underline_attributes[i].type ==
chromeos::CompositionText::COMPOSITION_TEXT_UNDERLINE_DOUBLE)
underline.thick = true;
@@ -626,7 +626,7 @@ void InputMethodChromeOS::ExtractCompositionText(
const uint32 end = text.selection_end();
CompositionUnderline underline(
char16_offsets[start], char16_offsets[end],
- SK_ColorBLACK, true /* thick */);
+ SK_ColorBLACK, true /* thick */, SK_ColorTRANSPARENT);
out_composition->underlines.push_back(underline);
// If the cursor is at start or end of this underline, then we treat
@@ -644,7 +644,7 @@ void InputMethodChromeOS::ExtractCompositionText(
// Use a black thin underline by default.
if (out_composition->underlines.empty()) {
out_composition->underlines.push_back(CompositionUnderline(
- 0, length, SK_ColorBLACK, false /* thick */));
+ 0, length, SK_ColorBLACK, false /* thick */, SK_ColorTRANSPARENT));
}
}

Powered by Google App Engine
This is Rietveld 408576698