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 24 matching lines...) Expand all Loading... |
35 #include "core/css/CSSValue.h" | 35 #include "core/css/CSSValue.h" |
36 #include "core/css/parser/CSSParserValues.h" | 36 #include "core/css/parser/CSSParserValues.h" |
37 #include "platform/CalculationValue.h" | 37 #include "platform/CalculationValue.h" |
38 #include "wtf/PassOwnPtr.h" | 38 #include "wtf/PassOwnPtr.h" |
39 #include "wtf/RefCounted.h" | 39 #include "wtf/RefCounted.h" |
40 #include "wtf/RefPtr.h" | 40 #include "wtf/RefPtr.h" |
41 | 41 |
42 namespace blink { | 42 namespace blink { |
43 | 43 |
44 class CSSParserValueList; | 44 class CSSParserValueList; |
45 class CSSValueList; | |
46 class CalculationValue; | 45 class CalculationValue; |
47 class CalcExpressionNode; | |
48 class Length; | |
49 | 46 |
50 enum CalcOperator { | 47 enum CalcOperator { |
51 CalcAdd = '+', | 48 CalcAdd = '+', |
52 CalcSubtract = '-', | 49 CalcSubtract = '-', |
53 CalcMultiply = '*', | 50 CalcMultiply = '*', |
54 CalcDivide = '/' | 51 CalcDivide = '/' |
55 }; | 52 }; |
56 | 53 |
57 // The order of this enum should not change since its elements are used as indic
es | 54 // The order of this enum should not change since its elements are used as indic
es |
58 // in the addSubtractResult matrix. | 55 // in the addSubtractResult matrix. |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 const RefPtrWillBeMember<CSSCalcExpressionNode> m_expression; | 142 const RefPtrWillBeMember<CSSCalcExpressionNode> m_expression; |
146 const bool m_nonNegative; | 143 const bool m_nonNegative; |
147 }; | 144 }; |
148 | 145 |
149 DEFINE_CSS_VALUE_TYPE_CASTS(CSSCalcValue, isCalcValue()); | 146 DEFINE_CSS_VALUE_TYPE_CASTS(CSSCalcValue, isCalcValue()); |
150 | 147 |
151 } // namespace blink | 148 } // namespace blink |
152 | 149 |
153 | 150 |
154 #endif // CSSCalculationValue_h | 151 #endif // CSSCalculationValue_h |
OLD | NEW |