Index: third_party/WebKit/Source/web/CompositionUnderlineBuilder.h |
diff --git a/third_party/WebKit/Source/web/CompositionUnderlineBuilder.h b/third_party/WebKit/Source/web/CompositionUnderlineBuilder.h |
index dd483f150c505b070d289dd4616022e4f5032963..a48b8e4cb880b3faff38b4df378b96aee6edbb56 100644 |
--- a/third_party/WebKit/Source/web/CompositionUnderlineBuilder.h |
+++ b/third_party/WebKit/Source/web/CompositionUnderlineBuilder.h |
@@ -33,6 +33,7 @@ |
#include "core/editing/CompositionUnderline.h" |
#include "public/web/WebCompositionUnderline.h" |
+#include "wtf/text/WTFString.h" |
namespace blink { |
@@ -46,7 +47,11 @@ class CompositionUnderlineBuilder : public CompositionUnderline { |
u.endOffset, |
Color(u.color), |
u.thick, |
- Color(u.backgroundColor)) {} |
+ Color(u.backgroundColor)) { |
+ for (const std::string& suggestion : u.suggestions) { |
+ m_suggestions.push_back(String::fromUTF8(suggestion.c_str())); |
+ } |
+ } |
}; |
} // namespace blink |