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

Side by Side Diff: third_party/WebKit/Source/core/animation/SVGLengthListInterpolationType.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/SVGLengthListInterpolationType.h" 5 #include "core/animation/SVGLengthListInterpolationType.h"
6 6
7 #include <memory>
7 #include "core/animation/InterpolationEnvironment.h" 8 #include "core/animation/InterpolationEnvironment.h"
8 #include "core/animation/SVGLengthInterpolationType.h" 9 #include "core/animation/SVGLengthInterpolationType.h"
9 #include "core/animation/UnderlyingLengthChecker.h" 10 #include "core/animation/UnderlyingLengthChecker.h"
10 #include "core/svg/SVGLengthList.h" 11 #include "core/svg/SVGLengthList.h"
11 #include <memory>
12 12
13 namespace blink { 13 namespace blink {
14 14
15 InterpolationValue SVGLengthListInterpolationType::maybeConvertNeutral( 15 InterpolationValue SVGLengthListInterpolationType::maybeConvertNeutral(
16 const InterpolationValue& underlying, 16 const InterpolationValue& underlying,
17 ConversionCheckers& conversionCheckers) const { 17 ConversionCheckers& conversionCheckers) const {
18 size_t underlyingLength = 18 size_t underlyingLength =
19 UnderlyingLengthChecker::getUnderlyingLength(underlying); 19 UnderlyingLengthChecker::getUnderlyingLength(underlying);
20 conversionCheckers.push_back( 20 conversionCheckers.push_back(
21 UnderlyingLengthChecker::create(underlyingLength)); 21 UnderlyingLengthChecker::create(underlyingLength));
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 const InterpolableList& list = toInterpolableList(interpolableValue); 92 const InterpolableList& list = toInterpolableList(interpolableValue);
93 for (size_t i = 0; i < list.length(); i++) { 93 for (size_t i = 0; i < list.length(); i++) {
94 result->append(SVGLengthInterpolationType::resolveInterpolableSVGLength( 94 result->append(SVGLengthInterpolationType::resolveInterpolableSVGLength(
95 *list.get(i), lengthContext, m_unitMode, m_negativeValuesForbidden)); 95 *list.get(i), lengthContext, m_unitMode, m_negativeValuesForbidden));
96 } 96 }
97 97
98 element.setWebAnimatedAttribute(attribute(), result); 98 element.setWebAnimatedAttribute(attribute(), result);
99 } 99 }
100 100
101 } // namespace blink 101 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698