OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "core/animation/LengthPairStyleInterpolation.h" | 5 #include "core/animation/LengthPairStyleInterpolation.h" |
6 | 6 |
7 #include "core/css/CSSPrimitiveValue.h" | 7 #include "core/css/CSSPrimitiveValue.h" |
8 #include "core/css/CSSValue.h" | 8 #include "core/css/CSSValue.h" |
9 #include "core/css/CSSValuePair.h" | 9 #include "core/css/CSSValuePair.h" |
10 #include "core/css/StylePropertySet.h" | 10 #include "core/css/StylePropertySet.h" |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 RefPtrWillBeRawPtr<CSSValue> value5 = roundTrip(pairPx.release(), RangeNonNe
gative); | 78 RefPtrWillBeRawPtr<CSSValue> value5 = roundTrip(pairPx.release(), RangeNonNe
gative); |
79 testPrimitiveValue(value5, 10, 20, CSSPrimitiveValue::UnitType::Pixels); | 79 testPrimitiveValue(value5, 10, 20, CSSPrimitiveValue::UnitType::Pixels); |
80 | 80 |
81 RefPtrWillBeRawPtr<CSSPrimitiveValue> firstPc = CSSPrimitiveValue::create(30
, CSSPrimitiveValue::UnitType::Percentage); | 81 RefPtrWillBeRawPtr<CSSPrimitiveValue> firstPc = CSSPrimitiveValue::create(30
, CSSPrimitiveValue::UnitType::Percentage); |
82 RefPtrWillBeRawPtr<CSSPrimitiveValue> secondPc = CSSPrimitiveValue::create(-
30, CSSPrimitiveValue::UnitType::Percentage); | 82 RefPtrWillBeRawPtr<CSSPrimitiveValue> secondPc = CSSPrimitiveValue::create(-
30, CSSPrimitiveValue::UnitType::Percentage); |
83 RefPtrWillBeRawPtr<CSSValuePair> pairPc = CSSValuePair::create(firstPc.relea
se(), secondPc.release(), CSSValuePair::KeepIdenticalValues); | 83 RefPtrWillBeRawPtr<CSSValuePair> pairPc = CSSValuePair::create(firstPc.relea
se(), secondPc.release(), CSSValuePair::KeepIdenticalValues); |
84 RefPtrWillBeRawPtr<CSSValue> value6 = roundTrip(pairPc.release(), RangeNonNe
gative); | 84 RefPtrWillBeRawPtr<CSSValue> value6 = roundTrip(pairPc.release(), RangeNonNe
gative); |
85 testPrimitiveValue(value6, 30, 0, CSSPrimitiveValue::UnitType::Percentage); | 85 testPrimitiveValue(value6, 30, 0, CSSPrimitiveValue::UnitType::Percentage); |
86 } | 86 } |
87 | 87 |
88 } | 88 } // namespace blink |
OLD | NEW |