OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 | 42 |
43 class CalculationValue; | 43 class CalculationValue; |
44 | 44 |
45 enum CalcOperator { | 45 enum CalcOperator { |
46 CalcAdd = '+', | 46 CalcAdd = '+', |
47 CalcSubtract = '-', | 47 CalcSubtract = '-', |
48 CalcMultiply = '*', | 48 CalcMultiply = '*', |
49 CalcDivide = '/' | 49 CalcDivide = '/' |
50 }; | 50 }; |
51 | 51 |
52 // The order of this enum should not change since its elements are used as indic
es | 52 // The order of this enum should not change since its elements are used as |
53 // in the addSubtractResult matrix. | 53 // indices in the addSubtractResult matrix. |
54 enum CalculationCategory { | 54 enum CalculationCategory { |
55 CalcNumber = 0, | 55 CalcNumber = 0, |
56 CalcLength, | 56 CalcLength, |
57 CalcPercent, | 57 CalcPercent, |
58 CalcPercentNumber, | 58 CalcPercentNumber, |
59 CalcPercentLength, | 59 CalcPercentLength, |
60 CalcAngle, | 60 CalcAngle, |
61 CalcTime, | 61 CalcTime, |
62 CalcFrequency, | 62 CalcFrequency, |
63 CalcLengthNumber, | 63 CalcLengthNumber, |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 | 146 |
147 double clampToPermittedRange(double) const; | 147 double clampToPermittedRange(double) const; |
148 | 148 |
149 const Member<CSSCalcExpressionNode> m_expression; | 149 const Member<CSSCalcExpressionNode> m_expression; |
150 const bool m_nonNegative; | 150 const bool m_nonNegative; |
151 }; | 151 }; |
152 | 152 |
153 } // namespace blink | 153 } // namespace blink |
154 | 154 |
155 #endif // CSSCalculationValue_h | 155 #endif // CSSCalculationValue_h |
OLD | NEW |