| 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 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 421 }; | 421 }; |
| 422 | 422 |
| 423 enum ScrollSnapType { | 423 enum ScrollSnapType { |
| 424 kScrollSnapTypeNone, | 424 kScrollSnapTypeNone, |
| 425 kScrollSnapTypeMandatory, | 425 kScrollSnapTypeMandatory, |
| 426 kScrollSnapTypeProximity | 426 kScrollSnapTypeProximity |
| 427 }; | 427 }; |
| 428 | 428 |
| 429 enum AutoRepeatType { kNoAutoRepeat, kAutoFill, kAutoFit }; | 429 enum AutoRepeatType { kNoAutoRepeat, kAutoFill, kAutoFit }; |
| 430 | 430 |
| 431 // Page size type. |
| 432 // StyleRareNonInheritedData::page_size_ is meaningful only when |
| 433 // StyleRareNonInheritedData::page_size_type_ is kResolved. |
| 434 enum class PageSizeType { |
| 435 kAuto, // size: auto |
| 436 kLandscape, // size: landscape |
| 437 kPortrait, // size: portrait |
| 438 kResolved // Size is fully resolved. |
| 439 }; |
| 440 |
| 431 // In order to conserve memory, the border width uses fixed point, | 441 // In order to conserve memory, the border width uses fixed point, |
| 432 // which can be bitpacked. This fixed point implementation is | 442 // which can be bitpacked. This fixed point implementation is |
| 433 // essentially the same as in LayoutUnit. Six bits are used for the | 443 // essentially the same as in LayoutUnit. Six bits are used for the |
| 434 // fraction, which leaves 20 bits for the integer part, making 1048575 | 444 // fraction, which leaves 20 bits for the integer part, making 1048575 |
| 435 // the largest number. | 445 // the largest number. |
| 436 | 446 |
| 437 static const int kBorderWidthFractionalBits = 6; | 447 static const int kBorderWidthFractionalBits = 6; |
| 438 static const int kBorderWidthDenominator = 1 << kBorderWidthFractionalBits; | 448 static const int kBorderWidthDenominator = 1 << kBorderWidthFractionalBits; |
| 439 static const int kMaxForBorderWidth = ((1 << 26) - 1) / kBorderWidthDenominator; | 449 static const int kMaxForBorderWidth = ((1 << 26) - 1) / kBorderWidthDenominator; |
| 440 | 450 |
| 441 } // namespace blink | 451 } // namespace blink |
| 442 | 452 |
| 443 #endif // ComputedStyleConstants_h | 453 #endif // ComputedStyleConstants_h |
| OLD | NEW |