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

Side by Side Diff: third_party/WebKit/Source/core/animation/SVGNumberListInterpolationType.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/SVGNumberListInterpolationType.h" 5 #include "core/animation/SVGNumberListInterpolationType.h"
6 6
7 #include <memory>
7 #include "core/animation/InterpolationEnvironment.h" 8 #include "core/animation/InterpolationEnvironment.h"
8 #include "core/animation/UnderlyingLengthChecker.h" 9 #include "core/animation/UnderlyingLengthChecker.h"
9 #include "core/svg/SVGNumberList.h" 10 #include "core/svg/SVGNumberList.h"
10 #include <memory>
11 11
12 namespace blink { 12 namespace blink {
13 13
14 InterpolationValue SVGNumberListInterpolationType::maybeConvertNeutral( 14 InterpolationValue SVGNumberListInterpolationType::maybeConvertNeutral(
15 const InterpolationValue& underlying, 15 const InterpolationValue& underlying,
16 ConversionCheckers& conversionCheckers) const { 16 ConversionCheckers& conversionCheckers) const {
17 size_t underlyingLength = 17 size_t underlyingLength =
18 UnderlyingLengthChecker::getUnderlyingLength(underlying); 18 UnderlyingLengthChecker::getUnderlyingLength(underlying);
19 conversionCheckers.push_back( 19 conversionCheckers.push_back(
20 UnderlyingLengthChecker::create(underlyingLength)); 20 UnderlyingLengthChecker::create(underlyingLength));
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 const NonInterpolableValue*) const { 97 const NonInterpolableValue*) const {
98 SVGNumberList* result = SVGNumberList::create(); 98 SVGNumberList* result = SVGNumberList::create();
99 const InterpolableList& list = toInterpolableList(interpolableValue); 99 const InterpolableList& list = toInterpolableList(interpolableValue);
100 for (size_t i = 0; i < list.length(); i++) 100 for (size_t i = 0; i < list.length(); i++)
101 result->append( 101 result->append(
102 SVGNumber::create(toInterpolableNumber(list.get(i))->value())); 102 SVGNumber::create(toInterpolableNumber(list.get(i))->value()));
103 return result; 103 return result;
104 } 104 }
105 105
106 } // namespace blink 106 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698