OLD | NEW |
1 /* | 1 /* |
2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) | 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) |
3 * Copyright (C) 2004, 2005, 2006, 2008 Apple Inc. All rights reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2008 Apple Inc. All rights reserved. |
4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 // Resolution | 100 // Resolution |
101 DotsPerPixel, | 101 DotsPerPixel, |
102 DotsPerInch, | 102 DotsPerInch, |
103 DotsPerCentimeter, | 103 DotsPerCentimeter, |
104 // Other units | 104 // Other units |
105 Fraction, | 105 Fraction, |
106 Integer, | 106 Integer, |
107 Calc, | 107 Calc, |
108 CalcPercentageWithNumber, | 108 CalcPercentageWithNumber, |
109 CalcPercentageWithLength, | 109 CalcPercentageWithLength, |
| 110 CalcLengthWithNumber, |
| 111 CalcPercentageWithLengthAndNumber, |
110 ValueID, | 112 ValueID, |
111 | 113 |
112 // This value is used to handle quirky margins in reflow roots (body, td
, and th) like WinIE. | 114 // This value is used to handle quirky margins in reflow roots (body, td
, and th) like WinIE. |
113 // The basic idea is that a stylesheet can use the value __qem (for quir
ky em) instead of em. | 115 // The basic idea is that a stylesheet can use the value __qem (for quir
ky em) instead of em. |
114 // When the quirky value is used, if you're in quirks mode, the margin w
ill collapse away | 116 // When the quirky value is used, if you're in quirks mode, the margin w
ill collapse away |
115 // inside a table cell. This quirk is specified in the HTML spec but our
impl is different. | 117 // inside a table cell. This quirk is specified in the HTML spec but our
impl is different. |
116 // TODO: Remove this. crbug.com/443952 | 118 // TODO: Remove this. crbug.com/443952 |
117 QuirkyEms, | 119 QuirkyEms, |
118 }; | 120 }; |
119 | 121 |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 } m_value; | 304 } m_value; |
303 }; | 305 }; |
304 | 306 |
305 using CSSLengthArray = CSSPrimitiveValue::CSSLengthArray; | 307 using CSSLengthArray = CSSPrimitiveValue::CSSLengthArray; |
306 | 308 |
307 DEFINE_CSS_VALUE_TYPE_CASTS(CSSPrimitiveValue, isPrimitiveValue()); | 309 DEFINE_CSS_VALUE_TYPE_CASTS(CSSPrimitiveValue, isPrimitiveValue()); |
308 | 310 |
309 } // namespace blink | 311 } // namespace blink |
310 | 312 |
311 #endif // CSSPrimitiveValue_h | 313 #endif // CSSPrimitiveValue_h |
OLD | NEW |