OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) |
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) | 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
reserved. | 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
reserved. |
6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 }; | 172 }; |
173 | 173 |
174 enum EFillAttachment { | 174 enum EFillAttachment { |
175 ScrollBackgroundAttachment, LocalBackgroundAttachment, FixedBackgroundAttach
ment | 175 ScrollBackgroundAttachment, LocalBackgroundAttachment, FixedBackgroundAttach
ment |
176 }; | 176 }; |
177 | 177 |
178 enum EFillBox { | 178 enum EFillBox { |
179 BorderFillBox, PaddingFillBox, ContentFillBox, TextFillBox | 179 BorderFillBox, PaddingFillBox, ContentFillBox, TextFillBox |
180 }; | 180 }; |
181 | 181 |
| 182 inline EFillBox enclosingFillBox(EFillBox boxA, EFillBox boxB) |
| 183 { |
| 184 if (boxA == BorderFillBox || boxB == BorderFillBox) |
| 185 return BorderFillBox; |
| 186 if (boxA == PaddingFillBox || boxB == PaddingFillBox) |
| 187 return PaddingFillBox; |
| 188 if (boxA == ContentFillBox || boxB == ContentFillBox) |
| 189 return ContentFillBox; |
| 190 return TextFillBox; |
| 191 } |
| 192 |
182 enum EFillRepeat { | 193 enum EFillRepeat { |
183 RepeatFill, NoRepeatFill, RoundFill, SpaceFill | 194 RepeatFill, NoRepeatFill, RoundFill, SpaceFill |
184 }; | 195 }; |
185 | 196 |
186 enum EFillLayerType { | 197 enum EFillLayerType { |
187 BackgroundFillLayer, MaskFillLayer | 198 BackgroundFillLayer, MaskFillLayer |
188 }; | 199 }; |
189 | 200 |
190 // CSS3 Background Values | 201 // CSS3 Background Values |
191 enum EFillSizeType { Contain, Cover, SizeLength, SizeNone }; | 202 enum EFillSizeType { Contain, Cover, SizeLength, SizeNone }; |
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
620 | 631 |
621 enum AutoRepeatType { | 632 enum AutoRepeatType { |
622 NoAutoRepeat, | 633 NoAutoRepeat, |
623 AutoFill, | 634 AutoFill, |
624 AutoFit | 635 AutoFit |
625 }; | 636 }; |
626 | 637 |
627 } // namespace blink | 638 } // namespace blink |
628 | 639 |
629 #endif // ComputedStyleConstants_h | 640 #endif // ComputedStyleConstants_h |
OLD | NEW |