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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 // in the addSubtractResult matrix. | 53 // 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, |
| 64 CalcPercentLengthNumber, |
63 CalcOther | 65 CalcOther |
64 }; | 66 }; |
65 | 67 |
66 class CSSCalcExpressionNode : public GarbageCollected<CSSCalcExpressionNode> { | 68 class CSSCalcExpressionNode : public GarbageCollected<CSSCalcExpressionNode> { |
67 public: | 69 public: |
68 enum Type { | 70 enum Type { |
69 CssCalcPrimitiveValue = 1, | 71 CssCalcPrimitiveValue = 1, |
70 CssCalcBinaryOperation | 72 CssCalcBinaryOperation |
71 }; | 73 }; |
72 | 74 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 | 140 |
139 double clampToPermittedRange(double) const; | 141 double clampToPermittedRange(double) const; |
140 | 142 |
141 const Member<CSSCalcExpressionNode> m_expression; | 143 const Member<CSSCalcExpressionNode> m_expression; |
142 const bool m_nonNegative; | 144 const bool m_nonNegative; |
143 }; | 145 }; |
144 | 146 |
145 } // namespace blink | 147 } // namespace blink |
146 | 148 |
147 #endif // CSSCalculationValue_h | 149 #endif // CSSCalculationValue_h |
OLD | NEW |