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 | 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights |
6 * reserved. | 6 * reserved. |
7 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 7 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. | 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. |
9 * (http://www.torchmobile.com/) | 9 * (http://www.torchmobile.com/) |
10 * | 10 * |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 inline TextDecorationSkip operator|(TextDecorationSkip a, | 241 inline TextDecorationSkip operator|(TextDecorationSkip a, |
242 TextDecorationSkip b) { | 242 TextDecorationSkip b) { |
243 return TextDecorationSkip(static_cast<unsigned>(a) | | 243 return TextDecorationSkip(static_cast<unsigned>(a) | |
244 static_cast<unsigned>(b)); | 244 static_cast<unsigned>(b)); |
245 } | 245 } |
246 inline TextDecorationSkip& operator|=(TextDecorationSkip& a, | 246 inline TextDecorationSkip& operator|=(TextDecorationSkip& a, |
247 TextDecorationSkip b) { | 247 TextDecorationSkip b) { |
248 return a = a | b; | 248 return a = a | b; |
249 } | 249 } |
250 | 250 |
251 enum class TextAlignLast { | |
252 kAuto, | |
253 kStart, | |
254 kEnd, | |
255 kLeft, | |
256 kRight, | |
257 kCenter, | |
258 kJustify | |
259 }; | |
260 | |
261 enum TextUnderlinePosition { | 251 enum TextUnderlinePosition { |
262 // FIXME: Implement support for 'under left' and 'under right' values. | 252 // FIXME: Implement support for 'under left' and 'under right' values. |
263 kTextUnderlinePositionAuto, | 253 kTextUnderlinePositionAuto, |
264 kTextUnderlinePositionUnder | 254 kTextUnderlinePositionUnder |
265 }; | 255 }; |
266 | 256 |
267 enum ETransformStyle3D { kTransformStyle3DFlat, kTransformStyle3DPreserve3D }; | 257 enum ETransformStyle3D { kTransformStyle3DFlat, kTransformStyle3DPreserve3D }; |
268 | 258 |
269 enum OffsetRotationType { kOffsetRotationAuto, kOffsetRotationFixed }; | 259 enum OffsetRotationType { kOffsetRotationAuto, kOffsetRotationFixed }; |
270 | 260 |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 // fraction, which leaves 20 bits for the integer part, making 1048575 | 417 // fraction, which leaves 20 bits for the integer part, making 1048575 |
428 // the largest number. | 418 // the largest number. |
429 | 419 |
430 static const int kBorderWidthFractionalBits = 6; | 420 static const int kBorderWidthFractionalBits = 6; |
431 static const int kBorderWidthDenominator = 1 << kBorderWidthFractionalBits; | 421 static const int kBorderWidthDenominator = 1 << kBorderWidthFractionalBits; |
432 static const int kMaxForBorderWidth = ((1 << 26) - 1) / kBorderWidthDenominator; | 422 static const int kMaxForBorderWidth = ((1 << 26) - 1) / kBorderWidthDenominator; |
433 | 423 |
434 } // namespace blink | 424 } // namespace blink |
435 | 425 |
436 #endif // ComputedStyleConstants_h | 426 #endif // ComputedStyleConstants_h |
OLD | NEW |