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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 case CSSPrimitiveValue::UnitType::RGBColor: | 129 case CSSPrimitiveValue::UnitType::RGBColor: |
130 case CSSPrimitiveValue::UnitType::Pair: | 130 case CSSPrimitiveValue::UnitType::Pair: |
131 case CSSPrimitiveValue::UnitType::Shape: | 131 case CSSPrimitiveValue::UnitType::Shape: |
132 case CSSPrimitiveValue::UnitType::Quad: | 132 case CSSPrimitiveValue::UnitType::Quad: |
133 case CSSPrimitiveValue::UnitType::Calc: | 133 case CSSPrimitiveValue::UnitType::Calc: |
134 case CSSPrimitiveValue::UnitType::CalcPercentageWithNumber: | 134 case CSSPrimitiveValue::UnitType::CalcPercentageWithNumber: |
135 case CSSPrimitiveValue::UnitType::CalcPercentageWithLength: | 135 case CSSPrimitiveValue::UnitType::CalcPercentageWithLength: |
136 case CSSPrimitiveValue::UnitType::PropertyID: | 136 case CSSPrimitiveValue::UnitType::PropertyID: |
137 case CSSPrimitiveValue::UnitType::ValueID: | 137 case CSSPrimitiveValue::UnitType::ValueID: |
138 case CSSPrimitiveValue::UnitType::QuirkyEms: | 138 case CSSPrimitiveValue::UnitType::QuirkyEms: |
| 139 case CSSPrimitiveValue::UnitType::VariableReference: |
139 return false; | 140 return false; |
140 }; | 141 }; |
141 ASSERT_NOT_REACHED(); | 142 ASSERT_NOT_REACHED(); |
142 return false; | 143 return false; |
143 } | 144 } |
144 | 145 |
145 static String buildCSSText(const String& expression) | 146 static String buildCSSText(const String& expression) |
146 { | 147 { |
147 StringBuilder result; | 148 StringBuilder result; |
148 result.appendLiteral("calc"); | 149 result.appendLiteral("calc"); |
(...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
746 | 747 |
747 return expression ? adoptRefWillBeNoop(new CSSCalcValue(expression, range))
: nullptr; | 748 return expression ? adoptRefWillBeNoop(new CSSCalcValue(expression, range))
: nullptr; |
748 } | 749 } |
749 | 750 |
750 PassRefPtrWillBeRawPtr<CSSCalcValue> CSSCalcValue::create(PassRefPtrWillBeRawPtr
<CSSCalcExpressionNode> expression, ValueRange range) | 751 PassRefPtrWillBeRawPtr<CSSCalcValue> CSSCalcValue::create(PassRefPtrWillBeRawPtr
<CSSCalcExpressionNode> expression, ValueRange range) |
751 { | 752 { |
752 return adoptRefWillBeNoop(new CSSCalcValue(expression, range)); | 753 return adoptRefWillBeNoop(new CSSCalcValue(expression, range)); |
753 } | 754 } |
754 | 755 |
755 } // namespace blink | 756 } // namespace blink |
OLD | NEW |