| 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 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 416 kContentDistributionSpaceAround, | 416 kContentDistributionSpaceAround, |
| 417 kContentDistributionSpaceEvenly, | 417 kContentDistributionSpaceEvenly, |
| 418 kContentDistributionStretch | 418 kContentDistributionStretch |
| 419 }; | 419 }; |
| 420 | 420 |
| 421 // Reasonable maximum to prevent insane font sizes from causing crashes on some | 421 // Reasonable maximum to prevent insane font sizes from causing crashes on some |
| 422 // platforms (such as Windows). | 422 // platforms (such as Windows). |
| 423 static const float kMaximumAllowedFontSize = 10000.0f; | 423 static const float kMaximumAllowedFontSize = 10000.0f; |
| 424 | 424 |
| 425 enum TextIndentLine { kFirstLine, kEachLine }; | 425 enum TextIndentLine { kFirstLine, kEachLine }; |
| 426 enum TextIndentType { kTextIndentNormal, kTextIndentHanging }; | 426 enum class TextIndentType { kNormal, kHanging }; |
| 427 | 427 |
| 428 enum CSSBoxType { | 428 enum CSSBoxType { |
| 429 kBoxMissing = 0, | 429 kBoxMissing = 0, |
| 430 kMarginBox, | 430 kMarginBox, |
| 431 kBorderBox, | 431 kBorderBox, |
| 432 kPaddingBox, | 432 kPaddingBox, |
| 433 kContentBox | 433 kContentBox |
| 434 }; | 434 }; |
| 435 | 435 |
| 436 enum ScrollSnapType { | 436 enum ScrollSnapType { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 447 // fraction, which leaves 20 bits for the integer part, making 1048575 | 447 // fraction, which leaves 20 bits for the integer part, making 1048575 |
| 448 // the largest number. | 448 // the largest number. |
| 449 | 449 |
| 450 static const int kBorderWidthFractionalBits = 6; | 450 static const int kBorderWidthFractionalBits = 6; |
| 451 static const int kBorderWidthDenominator = 1 << kBorderWidthFractionalBits; | 451 static const int kBorderWidthDenominator = 1 << kBorderWidthFractionalBits; |
| 452 static const int kMaxForBorderWidth = ((1 << 26) - 1) / kBorderWidthDenominator; | 452 static const int kMaxForBorderWidth = ((1 << 26) - 1) / kBorderWidthDenominator; |
| 453 | 453 |
| 454 } // namespace blink | 454 } // namespace blink |
| 455 | 455 |
| 456 #endif // ComputedStyleConstants_h | 456 #endif // ComputedStyleConstants_h |
| OLD | NEW |