Chromium Code Reviews| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 88 kFirstInternalPseudoId = kPseudoIdScrollbarThumb, | 88 kFirstInternalPseudoId = kPseudoIdScrollbarThumb, |
| 89 kElementPseudoIdMask = (1 << (kPseudoIdBefore - kFirstPublicPseudoId)) | | 89 kElementPseudoIdMask = (1 << (kPseudoIdBefore - kFirstPublicPseudoId)) | |
| 90 (1 << (kPseudoIdAfter - kFirstPublicPseudoId)) | | 90 (1 << (kPseudoIdAfter - kFirstPublicPseudoId)) | |
| 91 (1 << (kPseudoIdBackdrop - kFirstPublicPseudoId)) | 91 (1 << (kPseudoIdBackdrop - kFirstPublicPseudoId)) |
| 92 }; | 92 }; |
| 93 | 93 |
| 94 enum ColumnFill { kColumnFillBalance, kColumnFillAuto }; | 94 enum ColumnFill { kColumnFillBalance, kColumnFillAuto }; |
| 95 | 95 |
| 96 enum ColumnSpan { kColumnSpanNone = 0, kColumnSpanAll }; | 96 enum ColumnSpan { kColumnSpanNone = 0, kColumnSpanAll }; |
| 97 | 97 |
| 98 // These have been defined in the order of their precedence for | |
| 99 // border-collapsing. Do not change this order! This order also must match the | |
| 100 // order in CSSValueKeywords.in. | |
| 101 enum class EBorderStyle { | |
|
shend
2017/05/17 22:18:34
When you generate EBorderStyle, the generator also
nainar
2017/05/18 01:58:35
Yup took out the relevant two functions.
| |
| 102 kNone, | |
| 103 kHidden, | |
| 104 kInset, | |
| 105 kGroove, | |
| 106 kOutset, | |
| 107 kRidge, | |
| 108 kDotted, | |
| 109 kDashed, | |
| 110 kSolid, | |
| 111 kDouble | |
| 112 }; | |
| 113 | |
| 114 enum OutlineIsAuto { kOutlineIsAutoOff = 0, kOutlineIsAutoOn }; | 98 enum OutlineIsAuto { kOutlineIsAutoOff = 0, kOutlineIsAutoOn }; |
| 115 | 99 |
| 116 enum EMarginCollapse { | 100 enum EMarginCollapse { |
| 117 kMarginCollapseCollapse, | 101 kMarginCollapseCollapse, |
| 118 kMarginCollapseSeparate, | 102 kMarginCollapseSeparate, |
| 119 kMarginCollapseDiscard | 103 kMarginCollapseDiscard |
| 120 }; | 104 }; |
| 121 | 105 |
| 122 // Random visual rendering model attributes. Not inherited. | 106 // Random visual rendering model attributes. Not inherited. |
| 123 | 107 |
| (...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 474 // fraction, which leaves 20 bits for the integer part, making 1048575 | 458 // fraction, which leaves 20 bits for the integer part, making 1048575 |
| 475 // the largest number. | 459 // the largest number. |
| 476 | 460 |
| 477 static const int kBorderWidthFractionalBits = 6; | 461 static const int kBorderWidthFractionalBits = 6; |
| 478 static const int kBorderWidthDenominator = 1 << kBorderWidthFractionalBits; | 462 static const int kBorderWidthDenominator = 1 << kBorderWidthFractionalBits; |
| 479 static const int kMaxForBorderWidth = ((1 << 26) - 1) / kBorderWidthDenominator; | 463 static const int kMaxForBorderWidth = ((1 << 26) - 1) / kBorderWidthDenominator; |
| 480 | 464 |
| 481 } // namespace blink | 465 } // namespace blink |
| 482 | 466 |
| 483 #endif // ComputedStyleConstants_h | 467 #endif // ComputedStyleConstants_h |
| OLD | NEW |