| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/CSSBorderImageLengthBoxInterpolationType.h" | 5 #include "core/animation/CSSBorderImageLengthBoxInterpolationType.h" |
| 6 | 6 |
| 7 #include <memory> |
| 7 #include "core/animation/BorderImageLengthBoxPropertyFunctions.h" | 8 #include "core/animation/BorderImageLengthBoxPropertyFunctions.h" |
| 8 #include "core/animation/LengthInterpolationFunctions.h" | 9 #include "core/animation/LengthInterpolationFunctions.h" |
| 9 #include "core/css/CSSQuadValue.h" | 10 #include "core/css/CSSQuadValue.h" |
| 10 #include "core/css/resolver/StyleResolverState.h" | 11 #include "core/css/resolver/StyleResolverState.h" |
| 11 #include "wtf/PtrUtil.h" | 12 #include "wtf/PtrUtil.h" |
| 12 #include <memory> | |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 | 15 |
| 16 namespace { | 16 namespace { |
| 17 | 17 |
| 18 enum SideIndex : unsigned { | 18 enum SideIndex : unsigned { |
| 19 SideTop, | 19 SideTop, |
| 20 SideRight, | 20 SideRight, |
| 21 SideBottom, | 21 SideBottom, |
| 22 SideLeft, | 22 SideLeft, |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 *list.get(index), nonInterpolableValues[index].get(), | 350 *list.get(index), nonInterpolableValues[index].get(), |
| 351 state.cssToLengthConversionData(), ValueRangeNonNegative); | 351 state.cssToLengthConversionData(), ValueRangeNonNegative); |
| 352 }; | 352 }; |
| 353 BorderImageLengthBox box(convertSide(SideTop), convertSide(SideRight), | 353 BorderImageLengthBox box(convertSide(SideTop), convertSide(SideRight), |
| 354 convertSide(SideBottom), convertSide(SideLeft)); | 354 convertSide(SideBottom), convertSide(SideLeft)); |
| 355 BorderImageLengthBoxPropertyFunctions::setBorderImageLengthBox( | 355 BorderImageLengthBoxPropertyFunctions::setBorderImageLengthBox( |
| 356 cssProperty(), *state.style(), box); | 356 cssProperty(), *state.style(), box); |
| 357 } | 357 } |
| 358 | 358 |
| 359 } // namespace blink | 359 } // namespace blink |
| OLD | NEW |