| 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 18 matching lines...) Expand all Loading... |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef CSSCalculationValue_h | 31 #ifndef CSSCalculationValue_h |
| 32 #define CSSCalculationValue_h | 32 #define CSSCalculationValue_h |
| 33 | 33 |
| 34 #include "core/CoreExport.h" | 34 #include "core/CoreExport.h" |
| 35 #include "core/css/CSSPrimitiveValue.h" | 35 #include "core/css/CSSPrimitiveValue.h" |
| 36 #include "core/css/CSSValue.h" | 36 #include "core/css/CSSValue.h" |
| 37 #include "core/css/parser/CSSParserTokenRange.h" | 37 #include "core/css/parser/CSSParserTokenRange.h" |
| 38 #include "platform/CalculationValue.h" | 38 #include "platform/CalculationValue.h" |
| 39 #include "wtf/PassOwnPtr.h" | 39 #include "wtf/Forward.h" |
| 40 #include "wtf/RefCounted.h" | |
| 41 #include "wtf/RefPtr.h" | |
| 42 | 40 |
| 43 namespace blink { | 41 namespace blink { |
| 44 | 42 |
| 45 class CalculationValue; | 43 class CalculationValue; |
| 46 | 44 |
| 47 enum CalcOperator { | 45 enum CalcOperator { |
| 48 CalcAdd = '+', | 46 CalcAdd = '+', |
| 49 CalcSubtract = '-', | 47 CalcSubtract = '-', |
| 50 CalcMultiply = '*', | 48 CalcMultiply = '*', |
| 51 CalcDivide = '/' | 49 CalcDivide = '/' |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 | 138 |
| 141 double clampToPermittedRange(double) const; | 139 double clampToPermittedRange(double) const; |
| 142 | 140 |
| 143 const Member<CSSCalcExpressionNode> m_expression; | 141 const Member<CSSCalcExpressionNode> m_expression; |
| 144 const bool m_nonNegative; | 142 const bool m_nonNegative; |
| 145 }; | 143 }; |
| 146 | 144 |
| 147 } // namespace blink | 145 } // namespace blink |
| 148 | 146 |
| 149 #endif // CSSCalculationValue_h | 147 #endif // CSSCalculationValue_h |
| OLD | NEW |