| 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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 }; | 195 }; |
| 196 | 196 |
| 197 enum class LineBreak { kAuto, kLoose, kNormal, kStrict, kAfterWhiteSpace }; | 197 enum class LineBreak { kAuto, kLoose, kNormal, kStrict, kAfterWhiteSpace }; |
| 198 | 198 |
| 199 enum EResize { RESIZE_NONE, RESIZE_BOTH, RESIZE_HORIZONTAL, RESIZE_VERTICAL }; | 199 enum EResize { RESIZE_NONE, RESIZE_BOTH, RESIZE_HORIZONTAL, RESIZE_VERTICAL }; |
| 200 | 200 |
| 201 enum QuoteType { OPEN_QUOTE, CLOSE_QUOTE, NO_OPEN_QUOTE, NO_CLOSE_QUOTE }; | 201 enum QuoteType { OPEN_QUOTE, CLOSE_QUOTE, NO_OPEN_QUOTE, NO_CLOSE_QUOTE }; |
| 202 | 202 |
| 203 enum EAnimPlayState { kAnimPlayStatePlaying, kAnimPlayStatePaused }; | 203 enum EAnimPlayState { kAnimPlayStatePlaying, kAnimPlayStatePaused }; |
| 204 | 204 |
| 205 static const size_t kTextDecorationBits = 4; | |
| 206 enum class TextDecoration : unsigned { | |
| 207 kNone = 0x0, | |
| 208 kUnderline = 0x1, | |
| 209 kOverline = 0x2, | |
| 210 kLineThrough = 0x4, | |
| 211 kBlink = 0x8 | |
| 212 }; | |
| 213 inline TextDecoration operator|(TextDecoration a, TextDecoration b) { | |
| 214 return static_cast<TextDecoration>(static_cast<unsigned>(a) | | |
| 215 static_cast<unsigned>(b)); | |
| 216 } | |
| 217 inline TextDecoration& operator|=(TextDecoration& a, TextDecoration b) { | |
| 218 return a = static_cast<TextDecoration>(static_cast<unsigned>(a) | | |
| 219 static_cast<unsigned>(b)); | |
| 220 } | |
| 221 inline TextDecoration& operator^=(TextDecoration& a, TextDecoration b) { | |
| 222 return a = static_cast<TextDecoration>(static_cast<unsigned>(a) ^ | |
| 223 static_cast<unsigned>(b)); | |
| 224 } | |
| 225 | |
| 226 enum TextDecorationStyle { | 205 enum TextDecorationStyle { |
| 227 kTextDecorationStyleSolid, | 206 kTextDecorationStyleSolid, |
| 228 kTextDecorationStyleDouble, | 207 kTextDecorationStyleDouble, |
| 229 kTextDecorationStyleDotted, | 208 kTextDecorationStyleDotted, |
| 230 kTextDecorationStyleDashed, | 209 kTextDecorationStyleDashed, |
| 231 kTextDecorationStyleWavy | 210 kTextDecorationStyleWavy |
| 232 }; | 211 }; |
| 233 | 212 |
| 234 static const size_t kTextDecorationSkipBits = 3; | 213 static const size_t kTextDecorationSkipBits = 3; |
| 235 enum class TextDecorationSkip { kNone = 0x0, kObjects = 0x1, kInk = 0x2 }; | 214 enum class TextDecorationSkip { kNone = 0x0, kObjects = 0x1, kInk = 0x2 }; |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 432 // fraction, which leaves 20 bits for the integer part, making 1048575 | 411 // fraction, which leaves 20 bits for the integer part, making 1048575 |
| 433 // the largest number. | 412 // the largest number. |
| 434 | 413 |
| 435 static const int kBorderWidthFractionalBits = 6; | 414 static const int kBorderWidthFractionalBits = 6; |
| 436 static const int kBorderWidthDenominator = 1 << kBorderWidthFractionalBits; | 415 static const int kBorderWidthDenominator = 1 << kBorderWidthFractionalBits; |
| 437 static const int kMaxForBorderWidth = ((1 << 26) - 1) / kBorderWidthDenominator; | 416 static const int kMaxForBorderWidth = ((1 << 26) - 1) / kBorderWidthDenominator; |
| 438 | 417 |
| 439 } // namespace blink | 418 } // namespace blink |
| 440 | 419 |
| 441 #endif // ComputedStyleConstants_h | 420 #endif // ComputedStyleConstants_h |
| OLD | NEW |