Index: third_party/WebKit/Source/core/editing/CompositionUnderline.cpp |
diff --git a/third_party/WebKit/Source/core/editing/CompositionUnderline.cpp b/third_party/WebKit/Source/core/editing/CompositionUnderline.cpp |
index e404879b86ccb7b461d896f3eaeda749d8783b57..027ccce6d945bc6019cd3ee9539561c22822a0bd 100644 |
--- a/third_party/WebKit/Source/core/editing/CompositionUnderline.cpp |
+++ b/third_party/WebKit/Source/core/editing/CompositionUnderline.cpp |
@@ -11,7 +11,24 @@ CompositionUnderline::CompositionUnderline(unsigned startOffset, |
const Color& color, |
bool thick, |
const Color& backgroundColor) |
- : m_color(color), m_thick(thick), m_backgroundColor(backgroundColor) { |
+ : CompositionUnderline(startOffset, |
+ endOffset, |
+ color, |
+ thick, |
+ backgroundColor, |
+ std::vector<std::string>()) {} |
+ |
+CompositionUnderline::CompositionUnderline( |
+ unsigned startOffset, |
+ unsigned endOffset, |
+ const Color& color, |
+ bool thick, |
+ const Color& backgroundColor, |
+ const std::vector<std::string>& suggestions) |
+ : m_color(color), |
+ m_thick(thick), |
+ m_backgroundColor(backgroundColor), |
+ m_suggestions(suggestions) { |
// Sanitize offsets by ensuring a valid range corresponding to the last |
// possible position. |
// TODO(wkorman): Consider replacing with DCHECK_LT(startOffset, endOffset). |