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/LengthBoxStyleInterpolation.h" | 5 #include "core/animation/LengthBoxStyleInterpolation.h" |
6 | 6 |
7 #include "core/animation/LengthStyleInterpolation.h" | 7 #include "core/animation/LengthStyleInterpolation.h" |
8 #include "core/css/CSSPrimitiveValue.h" | 8 #include "core/css/CSSPrimitiveValue.h" |
9 #include "core/css/CSSQuadValue.h" | 9 #include "core/css/CSSQuadValue.h" |
10 #include "core/css/StylePropertySet.h" | 10 #include "core/css/StylePropertySet.h" |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 | 103 |
104 RefPtrWillBeRawPtr<CSSPrimitiveValue> leftPer = CSSPrimitiveValue::create(30
, CSSPrimitiveValue::UnitType::Percentage); | 104 RefPtrWillBeRawPtr<CSSPrimitiveValue> leftPer = CSSPrimitiveValue::create(30
, CSSPrimitiveValue::UnitType::Percentage); |
105 RefPtrWillBeRawPtr<CSSPrimitiveValue> rightPer = CSSPrimitiveValue::create(-
30, CSSPrimitiveValue::UnitType::Percentage); | 105 RefPtrWillBeRawPtr<CSSPrimitiveValue> rightPer = CSSPrimitiveValue::create(-
30, CSSPrimitiveValue::UnitType::Percentage); |
106 RefPtrWillBeRawPtr<CSSPrimitiveValue> topPer = CSSPrimitiveValue::create(30,
CSSPrimitiveValue::UnitType::Percentage); | 106 RefPtrWillBeRawPtr<CSSPrimitiveValue> topPer = CSSPrimitiveValue::create(30,
CSSPrimitiveValue::UnitType::Percentage); |
107 RefPtrWillBeRawPtr<CSSPrimitiveValue> bottomPer = CSSPrimitiveValue::create(
-30, CSSPrimitiveValue::UnitType::Percentage); | 107 RefPtrWillBeRawPtr<CSSPrimitiveValue> bottomPer = CSSPrimitiveValue::create(
-30, CSSPrimitiveValue::UnitType::Percentage); |
108 | 108 |
109 value = roundTrip(CSSQuadValue::create(topPer.release(), rightPer.release(),
bottomPer.release(), leftPer.release(), CSSQuadValue::SerializeAsRect)); | 109 value = roundTrip(CSSQuadValue::create(topPer.release(), rightPer.release(),
bottomPer.release(), leftPer.release(), CSSQuadValue::SerializeAsRect)); |
110 testQuadValue(value, 30, -30, 30, -30, CSSPrimitiveValue::UnitType::Percenta
ge); | 110 testQuadValue(value, 30, -30, 30, -30, CSSPrimitiveValue::UnitType::Percenta
ge); |
111 } | 111 } |
112 | 112 |
113 } | 113 } // namespace blink |
OLD | NEW |