| 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 case CSSPrimitiveValue::UnitType::ViewportHeight: | 113 case CSSPrimitiveValue::UnitType::ViewportHeight: |
| 114 case CSSPrimitiveValue::UnitType::ViewportMin: | 114 case CSSPrimitiveValue::UnitType::ViewportMin: |
| 115 case CSSPrimitiveValue::UnitType::ViewportMax: | 115 case CSSPrimitiveValue::UnitType::ViewportMax: |
| 116 case CSSPrimitiveValue::UnitType::DotsPerPixel: | 116 case CSSPrimitiveValue::UnitType::DotsPerPixel: |
| 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: | |
| 124 case CSSPrimitiveValue::UnitType::String: | |
| 125 case CSSPrimitiveValue::UnitType::URI: | |
| 126 case CSSPrimitiveValue::UnitType::RGBColor: | 123 case CSSPrimitiveValue::UnitType::RGBColor: |
| 127 case CSSPrimitiveValue::UnitType::Calc: | 124 case CSSPrimitiveValue::UnitType::Calc: |
| 128 case CSSPrimitiveValue::UnitType::CalcPercentageWithNumber: | 125 case CSSPrimitiveValue::UnitType::CalcPercentageWithNumber: |
| 129 case CSSPrimitiveValue::UnitType::CalcPercentageWithLength: | 126 case CSSPrimitiveValue::UnitType::CalcPercentageWithLength: |
| 130 case CSSPrimitiveValue::UnitType::PropertyID: | 127 case CSSPrimitiveValue::UnitType::PropertyID: |
| 131 case CSSPrimitiveValue::UnitType::ValueID: | 128 case CSSPrimitiveValue::UnitType::ValueID: |
| 132 case CSSPrimitiveValue::UnitType::QuirkyEms: | 129 case CSSPrimitiveValue::UnitType::QuirkyEms: |
| 133 return false; | 130 return false; |
| 134 }; | 131 }; |
| 135 ASSERT_NOT_REACHED(); | 132 ASSERT_NOT_REACHED(); |
| (...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 741 | 738 |
| 742 return expression ? adoptRefWillBeNoop(new CSSCalcValue(expression, range))
: nullptr; | 739 return expression ? adoptRefWillBeNoop(new CSSCalcValue(expression, range))
: nullptr; |
| 743 } | 740 } |
| 744 | 741 |
| 745 PassRefPtrWillBeRawPtr<CSSCalcValue> CSSCalcValue::create(PassRefPtrWillBeRawPtr
<CSSCalcExpressionNode> expression, ValueRange range) | 742 PassRefPtrWillBeRawPtr<CSSCalcValue> CSSCalcValue::create(PassRefPtrWillBeRawPtr
<CSSCalcExpressionNode> expression, ValueRange range) |
| 746 { | 743 { |
| 747 return adoptRefWillBeNoop(new CSSCalcValue(expression, range)); | 744 return adoptRefWillBeNoop(new CSSCalcValue(expression, range)); |
| 748 } | 745 } |
| 749 | 746 |
| 750 } // namespace blink | 747 } // namespace blink |
| OLD | NEW |