OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 14 matching lines...) Expand all Loading... |
25 | 25 |
26 #ifndef CompositionUnderline_h | 26 #ifndef CompositionUnderline_h |
27 #define CompositionUnderline_h | 27 #define CompositionUnderline_h |
28 | 28 |
29 #include "platform/graphics/Color.h" | 29 #include "platform/graphics/Color.h" |
30 | 30 |
31 namespace WebCore { | 31 namespace WebCore { |
32 | 32 |
33 struct CompositionUnderline { | 33 struct CompositionUnderline { |
34 CompositionUnderline() | 34 CompositionUnderline() |
35 : startOffset(0), endOffset(0), thick(false) { } | 35 : startOffset(0) |
| 36 , endOffset(0) |
| 37 , color(Color::transparent) |
| 38 , thick(false) |
| 39 , backgroundColor(Color::transparent) { } |
| 40 |
| 41 // FIXME(huangs): remove this constructor. |
36 CompositionUnderline(unsigned s, unsigned e, const Color& c, bool t) | 42 CompositionUnderline(unsigned s, unsigned e, const Color& c, bool t) |
37 : startOffset(s), endOffset(e), color(c), thick(t) { } | 43 : startOffset(s) |
| 44 , endOffset(e) |
| 45 , color(c) |
| 46 , thick(t) |
| 47 , backgroundColor(Color::transparent) { } |
| 48 |
| 49 CompositionUnderline(unsigned s, unsigned e, const Color& c, bool t, const C
olor& bc) |
| 50 : startOffset(s) |
| 51 , endOffset(e) |
| 52 , color(c) |
| 53 , thick(t) |
| 54 , backgroundColor(bc) { } |
| 55 |
38 unsigned startOffset; | 56 unsigned startOffset; |
39 unsigned endOffset; | 57 unsigned endOffset; |
40 Color color; | 58 Color color; |
41 bool thick; | 59 bool thick; |
| 60 Color backgroundColor; |
42 }; | 61 }; |
43 | 62 |
44 } // namespace WebCore | 63 } // namespace WebCore |
45 | 64 |
46 #endif // CompositionUnderline_h | 65 #endif // CompositionUnderline_h |
OLD | NEW |