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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
56 // in the addSubtractResult matrix. | 56 // in the addSubtractResult matrix. |
57 enum CalculationCategory { | 57 enum CalculationCategory { |
58 CalcNumber = 0, | 58 CalcNumber = 0, |
59 CalcLength, | 59 CalcLength, |
60 CalcPercent, | 60 CalcPercent, |
61 CalcPercentNumber, | 61 CalcPercentNumber, |
62 CalcPercentLength, | 62 CalcPercentLength, |
63 CalcAngle, | 63 CalcAngle, |
64 CalcTime, | 64 CalcTime, |
65 CalcFrequency, | 65 CalcFrequency, |
66 CalcVariable, | |
alancutter (OOO until 2018)
2015/06/26 06:56:07
Is this used? Aren't variable references always to
| |
66 CalcOther | 67 CalcOther |
67 }; | 68 }; |
68 | 69 |
69 class CSSCalcExpressionNode : public RefCountedWillBeGarbageCollected<CSSCalcExp ressionNode> { | 70 class CSSCalcExpressionNode : public RefCountedWillBeGarbageCollected<CSSCalcExp ressionNode> { |
70 DECLARE_EMPTY_VIRTUAL_DESTRUCTOR_WILL_BE_REMOVED(CSSCalcExpressionNode); | 71 DECLARE_EMPTY_VIRTUAL_DESTRUCTOR_WILL_BE_REMOVED(CSSCalcExpressionNode); |
71 public: | 72 public: |
72 enum Type { | 73 enum Type { |
73 CssCalcPrimitiveValue = 1, | 74 CssCalcPrimitiveValue = 1, |
74 CssCalcBinaryOperation | 75 CssCalcBinaryOperation |
75 }; | 76 }; |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
143 const RefPtrWillBeMember<CSSCalcExpressionNode> m_expression; | 144 const RefPtrWillBeMember<CSSCalcExpressionNode> m_expression; |
144 const bool m_nonNegative; | 145 const bool m_nonNegative; |
145 }; | 146 }; |
146 | 147 |
147 DEFINE_CSS_VALUE_TYPE_CASTS(CSSCalcValue, isCalcValue()); | 148 DEFINE_CSS_VALUE_TYPE_CASTS(CSSCalcValue, isCalcValue()); |
148 | 149 |
149 } // namespace blink | 150 } // namespace blink |
150 | 151 |
151 | 152 |
152 #endif // CSSCalculationValue_h | 153 #endif // CSSCalculationValue_h |
OLD | NEW |