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

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

Issue 1276183004: Oilpan: Unship oilpan from temporary animation objects (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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 | Annotate | Revision Log
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/CSSValueInterpolationType.h" 6 #include "core/animation/CSSValueInterpolationType.h"
7 7
8 #include "core/css/resolver/StyleBuilder.h" 8 #include "core/css/resolver/StyleBuilder.h"
9 9
10 namespace blink { 10 namespace blink {
(...skipping 20 matching lines...) Expand all
31 CSSValueNonInterpolableValue(PassRefPtrWillBeRawPtr<CSSValue> cssValue) 31 CSSValueNonInterpolableValue(PassRefPtrWillBeRawPtr<CSSValue> cssValue)
32 : m_cssValue(cssValue) 32 : m_cssValue(cssValue)
33 { } 33 { }
34 34
35 RefPtrWillBeMember<CSSValue> m_cssValue; 35 RefPtrWillBeMember<CSSValue> m_cssValue;
36 }; 36 };
37 37
38 DEFINE_NON_INTERPOLABLE_VALUE_TYPE(CSSValueNonInterpolableValue); 38 DEFINE_NON_INTERPOLABLE_VALUE_TYPE(CSSValueNonInterpolableValue);
39 DEFINE_NON_INTERPOLABLE_VALUE_TYPE_CASTS(CSSValueNonInterpolableValue); 39 DEFINE_NON_INTERPOLABLE_VALUE_TYPE_CASTS(CSSValueNonInterpolableValue);
40 40
41 PassOwnPtrWillBeRawPtr<InterpolationValue> CSSValueInterpolationType::maybeConve rtSingle(const CSSPropertySpecificKeyframe& keyframe, const StyleResolverState*, ConversionCheckers&) const 41 PassOwnPtr<InterpolationValue> CSSValueInterpolationType::maybeConvertSingle(con st CSSPropertySpecificKeyframe& keyframe, const StyleResolverState*, ConversionC heckers&) const
42 { 42 {
43 return InterpolationValue::create(*this, InterpolableList::create(0), CSSVal ueNonInterpolableValue::create(keyframe.value())); 43 return InterpolationValue::create(*this, InterpolableList::create(0), CSSVal ueNonInterpolableValue::create(keyframe.value()));
44 } 44 }
45 45
46 void CSSValueInterpolationType::apply(const InterpolableValue&, const NonInterpo lableValue* nonInterpolableValue, StyleResolverState& state) const 46 void CSSValueInterpolationType::apply(const InterpolableValue&, const NonInterpo lableValue* nonInterpolableValue, StyleResolverState& state) const
47 { 47 {
48 CSSValue* value = toCSSValueNonInterpolableValue(nonInterpolableValue)->cssV alue(); 48 CSSValue* value = toCSSValueNonInterpolableValue(nonInterpolableValue)->cssV alue();
49 if (value) 49 if (value)
50 StyleBuilder::applyProperty(m_property, state, value); 50 StyleBuilder::applyProperty(m_property, state, value);
51 } 51 }
52 52
53 } // namespace blink 53 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698