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

Side by Side Diff: third_party/WebKit/Source/core/animation/SVGIntegerOptionalIntegerInterpolationType.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/SVGIntegerOptionalIntegerInterpolationType.h" 5 #include "core/animation/SVGIntegerOptionalIntegerInterpolationType.h"
6 6
7 #include <memory>
7 #include "core/animation/InterpolationEnvironment.h" 8 #include "core/animation/InterpolationEnvironment.h"
8 #include "core/svg/SVGIntegerOptionalInteger.h" 9 #include "core/svg/SVGIntegerOptionalInteger.h"
9 #include <memory>
10 10
11 namespace blink { 11 namespace blink {
12 12
13 InterpolationValue 13 InterpolationValue
14 SVGIntegerOptionalIntegerInterpolationType::maybeConvertNeutral( 14 SVGIntegerOptionalIntegerInterpolationType::maybeConvertNeutral(
15 const InterpolationValue&, 15 const InterpolationValue&,
16 ConversionCheckers&) const { 16 ConversionCheckers&) const {
17 std::unique_ptr<InterpolableList> result = InterpolableList::create(2); 17 std::unique_ptr<InterpolableList> result = InterpolableList::create(2);
18 result->set(0, InterpolableNumber::create(0)); 18 result->set(0, InterpolableNumber::create(0));
19 result->set(1, InterpolableNumber::create(0)); 19 result->set(1, InterpolableNumber::create(0));
(...skipping 23 matching lines...) Expand all
43 43
44 SVGPropertyBase* SVGIntegerOptionalIntegerInterpolationType::appliedSVGValue( 44 SVGPropertyBase* SVGIntegerOptionalIntegerInterpolationType::appliedSVGValue(
45 const InterpolableValue& interpolableValue, 45 const InterpolableValue& interpolableValue,
46 const NonInterpolableValue*) const { 46 const NonInterpolableValue*) const {
47 const InterpolableList& list = toInterpolableList(interpolableValue); 47 const InterpolableList& list = toInterpolableList(interpolableValue);
48 return SVGIntegerOptionalInteger::create(toPositiveInteger(list.get(0)), 48 return SVGIntegerOptionalInteger::create(toPositiveInteger(list.get(0)),
49 toPositiveInteger(list.get(1))); 49 toPositiveInteger(list.get(1)));
50 } 50 }
51 51
52 } // namespace blink 52 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698