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 "config.h" | 5 #include "config.h" |
6 #include "core/animation/ImageSliceStyleInterpolation.h" | 6 #include "core/animation/ImageSliceStyleInterpolation.h" |
7 | 7 |
8 #include "core/css/CSSBorderImageSliceValue.h" | 8 #include "core/css/CSSBorderImageSliceValue.h" |
9 #include "core/css/CSSPrimitiveValue.h" | 9 #include "core/css/CSSPrimitiveValue.h" |
10 #include "core/css/Rect.h" | 10 #include "core/css/Rect.h" |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 return adoptRefWillBeNoop(new ImageSliceStyleInterpolation( | 82 return adoptRefWillBeNoop(new ImageSliceStyleInterpolation( |
83 startDecompose.interpolableValue.release(), | 83 startDecompose.interpolableValue.release(), |
84 endDecompose.interpolableValue.release(), | 84 endDecompose.interpolableValue.release(), |
85 property, | 85 property, |
86 startDecompose.metadata | 86 startDecompose.metadata |
87 )); | 87 )); |
88 } | 88 } |
89 | 89 |
90 void ImageSliceStyleInterpolation::apply(StyleResolverState& state) const | 90 void ImageSliceStyleInterpolation::apply(StyleResolverState& state) const |
91 { | 91 { |
92 StyleBuilder::applyProperty(m_id, state, compose(*m_cachedValue, m_metadata)
.get()); | 92 StyleBuilder::applyProperty(m_id, state, *compose(*m_cachedValue, m_metadata
)); |
93 } | 93 } |
94 | 94 |
95 DEFINE_TRACE(ImageSliceStyleInterpolation) | 95 DEFINE_TRACE(ImageSliceStyleInterpolation) |
96 { | 96 { |
97 StyleInterpolation::trace(visitor); | 97 StyleInterpolation::trace(visitor); |
98 } | 98 } |
99 | 99 |
100 } // namespace blink | 100 } // namespace blink |
OLD | NEW |