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

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

Issue 813233002: Animation: Fix loss of type information when interpolating value of 0 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Attempt to fix linux oilpan errors Created 6 years 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/LengthPairStyleInterpolation.h" 6 #include "core/animation/LengthPairStyleInterpolation.h"
7 7
8 #include "core/animation/LengthStyleInterpolation.h" 8 #include "core/animation/LengthStyleInterpolation.h"
9 #include "core/css/Pair.h" 9 #include "core/css/Pair.h"
10 #include "core/css/resolver/StyleBuilder.h" 10 #include "core/css/resolver/StyleBuilder.h"
(...skipping 29 matching lines...) Expand all
40 RefPtrWillBeRawPtr<Pair> result = Pair::create(first, second, Pair::KeepIden ticalValues); 40 RefPtrWillBeRawPtr<Pair> result = Pair::create(first, second, Pair::KeepIden ticalValues);
41 41
42 return CSSPrimitiveValue::create(result.release()); 42 return CSSPrimitiveValue::create(result.release());
43 } 43 }
44 44
45 void LengthPairStyleInterpolation::apply(StyleResolverState& state) const 45 void LengthPairStyleInterpolation::apply(StyleResolverState& state) const
46 { 46 {
47 StyleBuilder::applyProperty(m_id, state, interpolableValueToLengthPair(m_cac hedValue.get(), m_range).get()); 47 StyleBuilder::applyProperty(m_id, state, interpolableValueToLengthPair(m_cac hedValue.get(), m_range).get());
48 } 48 }
49 49
50 void LengthPairStyleInterpolation::trace(Visitor* visitor)
51 {
52 StyleInterpolation::trace(visitor);
53 }
54
50 } // namespace blink 55 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698