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

Side by Side Diff: third_party/WebKit/Source/core/animation/CSSLengthListInterpolationType.cpp

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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 "core/animation/CSSLengthListInterpolationType.h" 5 #include "core/animation/CSSLengthListInterpolationType.h"
6 6
7 #include <memory>
7 #include "core/animation/LengthInterpolationFunctions.h" 8 #include "core/animation/LengthInterpolationFunctions.h"
8 #include "core/animation/LengthListPropertyFunctions.h" 9 #include "core/animation/LengthListPropertyFunctions.h"
9 #include "core/animation/ListInterpolationFunctions.h" 10 #include "core/animation/ListInterpolationFunctions.h"
10 #include "core/animation/UnderlyingLengthChecker.h" 11 #include "core/animation/UnderlyingLengthChecker.h"
11 #include "core/css/CSSPrimitiveValue.h" 12 #include "core/css/CSSPrimitiveValue.h"
12 #include "core/css/CSSValueList.h" 13 #include "core/css/CSSValueList.h"
13 #include "core/css/resolver/StyleResolverState.h" 14 #include "core/css/resolver/StyleResolverState.h"
14 #include "wtf/PtrUtil.h" 15 #include "wtf/PtrUtil.h"
15 #include <memory>
16 16
17 namespace blink { 17 namespace blink {
18 18
19 CSSLengthListInterpolationType::CSSLengthListInterpolationType( 19 CSSLengthListInterpolationType::CSSLengthListInterpolationType(
20 PropertyHandle property) 20 PropertyHandle property)
21 : CSSInterpolationType(property), 21 : CSSInterpolationType(property),
22 m_valueRange(LengthListPropertyFunctions::getValueRange(cssProperty())) {} 22 m_valueRange(LengthListPropertyFunctions::getValueRange(cssProperty())) {}
23 23
24 InterpolationValue CSSLengthListInterpolationType::maybeConvertNeutral( 24 InterpolationValue CSSLengthListInterpolationType::maybeConvertNeutral(
25 const InterpolationValue& underlying, 25 const InterpolationValue& underlying,
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 for (size_t i = 0; i < length; i++) { 162 for (size_t i = 0; i < length; i++) {
163 result[i] = LengthInterpolationFunctions::createLength( 163 result[i] = LengthInterpolationFunctions::createLength(
164 *interpolableList.get(i), nonInterpolableList.get(i), 164 *interpolableList.get(i), nonInterpolableList.get(i),
165 state.cssToLengthConversionData(), m_valueRange); 165 state.cssToLengthConversionData(), m_valueRange);
166 } 166 }
167 LengthListPropertyFunctions::setLengthList(cssProperty(), *state.style(), 167 LengthListPropertyFunctions::setLengthList(cssProperty(), *state.style(),
168 std::move(result)); 168 std::move(result));
169 } 169 }
170 170
171 } // namespace blink 171 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698