Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: Source/core/animation/ImageSliceStyleInterpolation.cpp

Issue 1164573002: CSSValue Immediates: Change CSSValue to an object instead of a pointer (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « Source/core/animation/FilterStyleInterpolationTest.cpp ('k') | Source/core/animation/ImageStyleInterpolation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698