Index: Source/core/editing/CompositionUnderline.h |
diff --git a/Source/core/editing/CompositionUnderline.h b/Source/core/editing/CompositionUnderline.h |
index 025ee75cbf7696170769d5531c0891a254fb2681..d093469d4152e1b22c07f9252a5941d3b3c481a5 100644 |
--- a/Source/core/editing/CompositionUnderline.h |
+++ b/Source/core/editing/CompositionUnderline.h |
@@ -32,13 +32,32 @@ namespace WebCore { |
struct CompositionUnderline { |
CompositionUnderline() |
- : startOffset(0), endOffset(0), thick(false) { } |
+ : startOffset(0) |
+ , endOffset(0) |
+ , color(0) |
+ , thick(false) |
+ , backgroundColor(0) { } |
+ |
+ // TODO(huangs): remove this constructor. |
CompositionUnderline(unsigned s, unsigned e, const Color& c, bool t) |
- : startOffset(s), endOffset(e), color(c), thick(t) { } |
+ : startOffset(s) |
+ , endOffset(e) |
+ , color(c) |
+ , thick(t) |
+ , backgroundColor(0) { } |
+ |
+ CompositionUnderline(unsigned s, unsigned e, const Color& c, bool t, const Color& bc) |
+ : startOffset(s) |
+ , endOffset(e) |
+ , color(c) |
+ , thick(t) |
+ , backgroundColor(bc) { } |
+ |
unsigned startOffset; |
unsigned endOffset; |
Color color; |
bool thick; |
+ Color backgroundColor; |
}; |
} // namespace WebCore |