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..8dc5117ae3de165a1c6f31ea98fb519d7436c8ee 100644 |
--- a/third_party/WebKit/Source/core/editing/CompositionUnderline.cpp |
+++ b/third_party/WebKit/Source/core/editing/CompositionUnderline.cpp |
@@ -11,7 +11,23 @@ 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, |
+ Vector<String>()) {} |
+ |
+CompositionUnderline::CompositionUnderline(unsigned startOffset, |
+ unsigned endOffset, |
+ const Color& color, |
+ bool thick, |
+ const Color& backgroundColor, |
+ const Vector<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). |