| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/CSSShadowListInterpolationType.h" | 5 #include "core/animation/CSSShadowListInterpolationType.h" |
| 6 | 6 |
| 7 #include <memory> |
| 7 #include "core/animation/ListInterpolationFunctions.h" | 8 #include "core/animation/ListInterpolationFunctions.h" |
| 8 #include "core/animation/ShadowInterpolationFunctions.h" | 9 #include "core/animation/ShadowInterpolationFunctions.h" |
| 9 #include "core/animation/ShadowListPropertyFunctions.h" | 10 #include "core/animation/ShadowListPropertyFunctions.h" |
| 10 #include "core/css/CSSIdentifierValue.h" | 11 #include "core/css/CSSIdentifierValue.h" |
| 11 #include "core/css/CSSValueList.h" | 12 #include "core/css/CSSValueList.h" |
| 12 #include "core/css/resolver/StyleBuilder.h" | 13 #include "core/css/resolver/StyleBuilder.h" |
| 13 #include "core/css/resolver/StyleResolverState.h" | 14 #include "core/css/resolver/StyleResolverState.h" |
| 14 #include "core/style/ShadowList.h" | 15 #include "core/style/ShadowList.h" |
| 15 #include "wtf/PtrUtil.h" | 16 #include "wtf/PtrUtil.h" |
| 16 #include <memory> | |
| 17 | 17 |
| 18 namespace blink { | 18 namespace blink { |
| 19 | 19 |
| 20 InterpolationValue CSSShadowListInterpolationType::convertShadowList( | 20 InterpolationValue CSSShadowListInterpolationType::convertShadowList( |
| 21 const ShadowList* shadowList, | 21 const ShadowList* shadowList, |
| 22 double zoom) const { | 22 double zoom) const { |
| 23 if (!shadowList) | 23 if (!shadowList) |
| 24 return createNeutralValue(); | 24 return createNeutralValue(); |
| 25 const ShadowDataVector& shadows = shadowList->shadows(); | 25 const ShadowDataVector& shadows = shadowList->shadows(); |
| 26 return ListInterpolationFunctions::createList( | 26 return ListInterpolationFunctions::createList( |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 void CSSShadowListInterpolationType::applyStandardPropertyValue( | 159 void CSSShadowListInterpolationType::applyStandardPropertyValue( |
| 160 const InterpolableValue& interpolableValue, | 160 const InterpolableValue& interpolableValue, |
| 161 const NonInterpolableValue* nonInterpolableValue, | 161 const NonInterpolableValue* nonInterpolableValue, |
| 162 StyleResolverState& state) const { | 162 StyleResolverState& state) const { |
| 163 ShadowListPropertyFunctions::setShadowList( | 163 ShadowListPropertyFunctions::setShadowList( |
| 164 cssProperty(), *state.style(), | 164 cssProperty(), *state.style(), |
| 165 createShadowList(interpolableValue, nonInterpolableValue, state)); | 165 createShadowList(interpolableValue, nonInterpolableValue, state)); |
| 166 } | 166 } |
| 167 | 167 |
| 168 } // namespace blink | 168 } // namespace blink |
| OLD | NEW |