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