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 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
492 }; | 492 }; |
493 | 493 |
494 enum ScrollSnapType { | 494 enum ScrollSnapType { |
495 kScrollSnapTypeNone, | 495 kScrollSnapTypeNone, |
496 kScrollSnapTypeMandatory, | 496 kScrollSnapTypeMandatory, |
497 kScrollSnapTypeProximity | 497 kScrollSnapTypeProximity |
498 }; | 498 }; |
499 | 499 |
500 enum AutoRepeatType { kNoAutoRepeat, kAutoFill, kAutoFit }; | 500 enum AutoRepeatType { kNoAutoRepeat, kAutoFill, kAutoFit }; |
501 | 501 |
| 502 // In order to conserve memory, the border width uses fixed point, |
| 503 // which can be bitpacked. This fixed point implementation is |
| 504 // essentially the same as in LayoutUnit. Six bits are used for the |
| 505 // fraction, which leaves 20 bits for the integer part, making 1048575 |
| 506 // the largest number. |
| 507 |
| 508 static const int kBorderWidthFractionalBits = 6; |
| 509 static const int kBorderWidthDenominator = 1 << kBorderWidthFractionalBits; |
| 510 static const int kMaxForBorderWidth = ((1 << 26) - 1) / kBorderWidthDenominator; |
| 511 |
502 } // namespace blink | 512 } // namespace blink |
503 | 513 |
504 #endif // ComputedStyleConstants_h | 514 #endif // ComputedStyleConstants_h |
OLD | NEW |