| 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 case CSSPrimitiveValue::UnitType::DotsPerInch: | 117 case CSSPrimitiveValue::UnitType::DotsPerInch: |
| 118 case CSSPrimitiveValue::UnitType::DotsPerCentimeter: | 118 case CSSPrimitiveValue::UnitType::DotsPerCentimeter: |
| 119 case CSSPrimitiveValue::UnitType::Fraction: | 119 case CSSPrimitiveValue::UnitType::Fraction: |
| 120 case CSSPrimitiveValue::UnitType::Integer: | 120 case CSSPrimitiveValue::UnitType::Integer: |
| 121 return true; | 121 return true; |
| 122 case CSSPrimitiveValue::UnitType::Unknown: | 122 case CSSPrimitiveValue::UnitType::Unknown: |
| 123 case CSSPrimitiveValue::UnitType::CustomIdentifier: | 123 case CSSPrimitiveValue::UnitType::CustomIdentifier: |
| 124 case CSSPrimitiveValue::UnitType::String: | 124 case CSSPrimitiveValue::UnitType::String: |
| 125 case CSSPrimitiveValue::UnitType::URI: | 125 case CSSPrimitiveValue::UnitType::URI: |
| 126 case CSSPrimitiveValue::UnitType::Attribute: | 126 case CSSPrimitiveValue::UnitType::Attribute: |
| 127 case CSSPrimitiveValue::UnitType::Rect: | |
| 128 case CSSPrimitiveValue::UnitType::RGBColor: | 127 case CSSPrimitiveValue::UnitType::RGBColor: |
| 129 case CSSPrimitiveValue::UnitType::Pair: | 128 case CSSPrimitiveValue::UnitType::Pair: |
| 130 case CSSPrimitiveValue::UnitType::Shape: | 129 case CSSPrimitiveValue::UnitType::Shape: |
| 131 case CSSPrimitiveValue::UnitType::Quad: | |
| 132 case CSSPrimitiveValue::UnitType::Calc: | 130 case CSSPrimitiveValue::UnitType::Calc: |
| 133 case CSSPrimitiveValue::UnitType::CalcPercentageWithNumber: | 131 case CSSPrimitiveValue::UnitType::CalcPercentageWithNumber: |
| 134 case CSSPrimitiveValue::UnitType::CalcPercentageWithLength: | 132 case CSSPrimitiveValue::UnitType::CalcPercentageWithLength: |
| 135 case CSSPrimitiveValue::UnitType::PropertyID: | 133 case CSSPrimitiveValue::UnitType::PropertyID: |
| 136 case CSSPrimitiveValue::UnitType::ValueID: | 134 case CSSPrimitiveValue::UnitType::ValueID: |
| 137 case CSSPrimitiveValue::UnitType::QuirkyEms: | 135 case CSSPrimitiveValue::UnitType::QuirkyEms: |
| 138 return false; | 136 return false; |
| 139 }; | 137 }; |
| 140 ASSERT_NOT_REACHED(); | 138 ASSERT_NOT_REACHED(); |
| 141 return false; | 139 return false; |
| (...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 745 | 743 |
| 746 return expression ? adoptRefWillBeNoop(new CSSCalcValue(expression, range))
: nullptr; | 744 return expression ? adoptRefWillBeNoop(new CSSCalcValue(expression, range))
: nullptr; |
| 747 } | 745 } |
| 748 | 746 |
| 749 PassRefPtrWillBeRawPtr<CSSCalcValue> CSSCalcValue::create(PassRefPtrWillBeRawPtr
<CSSCalcExpressionNode> expression, ValueRange range) | 747 PassRefPtrWillBeRawPtr<CSSCalcValue> CSSCalcValue::create(PassRefPtrWillBeRawPtr
<CSSCalcExpressionNode> expression, ValueRange range) |
| 750 { | 748 { |
| 751 return adoptRefWillBeNoop(new CSSCalcValue(expression, range)); | 749 return adoptRefWillBeNoop(new CSSCalcValue(expression, range)); |
| 752 } | 750 } |
| 753 | 751 |
| 754 } // namespace blink | 752 } // namespace blink |
| OLD | NEW |