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 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
402 kContentDistributionSpaceBetween, | 402 kContentDistributionSpaceBetween, |
403 kContentDistributionSpaceAround, | 403 kContentDistributionSpaceAround, |
404 kContentDistributionSpaceEvenly, | 404 kContentDistributionSpaceEvenly, |
405 kContentDistributionStretch | 405 kContentDistributionStretch |
406 }; | 406 }; |
407 | 407 |
408 // Reasonable maximum to prevent insane font sizes from causing crashes on some | 408 // Reasonable maximum to prevent insane font sizes from causing crashes on some |
409 // platforms (such as Windows). | 409 // platforms (such as Windows). |
410 static const float kMaximumAllowedFontSize = 10000.0f; | 410 static const float kMaximumAllowedFontSize = 10000.0f; |
411 | 411 |
412 enum class TextIndentLine { kFirstLine, kEachLine }; | |
413 enum class TextIndentType { kNormal, kHanging }; | |
414 | |
415 enum CSSBoxType { | 412 enum CSSBoxType { |
416 kBoxMissing = 0, | 413 kBoxMissing = 0, |
417 kMarginBox, | 414 kMarginBox, |
418 kBorderBox, | 415 kBorderBox, |
419 kPaddingBox, | 416 kPaddingBox, |
420 kContentBox | 417 kContentBox |
421 }; | 418 }; |
422 | 419 |
423 enum ScrollSnapType { | 420 enum ScrollSnapType { |
424 kScrollSnapTypeNone, | 421 kScrollSnapTypeNone, |
425 kScrollSnapTypeMandatory, | 422 kScrollSnapTypeMandatory, |
426 kScrollSnapTypeProximity | 423 kScrollSnapTypeProximity |
427 }; | 424 }; |
428 | 425 |
429 enum AutoRepeatType { kNoAutoRepeat, kAutoFill, kAutoFit }; | 426 enum AutoRepeatType { kNoAutoRepeat, kAutoFill, kAutoFit }; |
430 | 427 |
431 // In order to conserve memory, the border width uses fixed point, | 428 // In order to conserve memory, the border width uses fixed point, |
432 // which can be bitpacked. This fixed point implementation is | 429 // which can be bitpacked. This fixed point implementation is |
433 // essentially the same as in LayoutUnit. Six bits are used for the | 430 // essentially the same as in LayoutUnit. Six bits are used for the |
434 // fraction, which leaves 20 bits for the integer part, making 1048575 | 431 // fraction, which leaves 20 bits for the integer part, making 1048575 |
435 // the largest number. | 432 // the largest number. |
436 | 433 |
437 static const int kBorderWidthFractionalBits = 6; | 434 static const int kBorderWidthFractionalBits = 6; |
438 static const int kBorderWidthDenominator = 1 << kBorderWidthFractionalBits; | 435 static const int kBorderWidthDenominator = 1 << kBorderWidthFractionalBits; |
439 static const int kMaxForBorderWidth = ((1 << 26) - 1) / kBorderWidthDenominator; | 436 static const int kMaxForBorderWidth = ((1 << 26) - 1) / kBorderWidthDenominator; |
440 | 437 |
441 } // namespace blink | 438 } // namespace blink |
442 | 439 |
443 #endif // ComputedStyleConstants_h | 440 #endif // ComputedStyleConstants_h |
OLD | NEW |