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

Side by Side Diff: third_party/WebKit/Source/core/animation/SVGInterpolationTypesMap.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/SVGInterpolationTypesMap.h" 5 #include "core/animation/SVGInterpolationTypesMap.h"
6 6
7 #include <memory>
7 #include "core/HTMLNames.h" 8 #include "core/HTMLNames.h"
8 #include "core/animation/SVGAngleInterpolationType.h" 9 #include "core/animation/SVGAngleInterpolationType.h"
9 #include "core/animation/SVGIntegerInterpolationType.h" 10 #include "core/animation/SVGIntegerInterpolationType.h"
10 #include "core/animation/SVGIntegerOptionalIntegerInterpolationType.h" 11 #include "core/animation/SVGIntegerOptionalIntegerInterpolationType.h"
11 #include "core/animation/SVGLengthInterpolationType.h" 12 #include "core/animation/SVGLengthInterpolationType.h"
12 #include "core/animation/SVGLengthListInterpolationType.h" 13 #include "core/animation/SVGLengthListInterpolationType.h"
13 #include "core/animation/SVGNumberInterpolationType.h" 14 #include "core/animation/SVGNumberInterpolationType.h"
14 #include "core/animation/SVGNumberListInterpolationType.h" 15 #include "core/animation/SVGNumberListInterpolationType.h"
15 #include "core/animation/SVGNumberOptionalNumberInterpolationType.h" 16 #include "core/animation/SVGNumberOptionalNumberInterpolationType.h"
16 #include "core/animation/SVGPathInterpolationType.h" 17 #include "core/animation/SVGPathInterpolationType.h"
17 #include "core/animation/SVGPointListInterpolationType.h" 18 #include "core/animation/SVGPointListInterpolationType.h"
18 #include "core/animation/SVGRectInterpolationType.h" 19 #include "core/animation/SVGRectInterpolationType.h"
19 #include "core/animation/SVGTransformListInterpolationType.h" 20 #include "core/animation/SVGTransformListInterpolationType.h"
20 #include "core/animation/SVGValueInterpolationType.h" 21 #include "core/animation/SVGValueInterpolationType.h"
21 #include "core/css/CSSPropertyMetadata.h" 22 #include "core/css/CSSPropertyMetadata.h"
22 #include "wtf/PtrUtil.h" 23 #include "wtf/PtrUtil.h"
23 #include <memory>
24 24
25 namespace blink { 25 namespace blink {
26 26
27 const InterpolationTypes& SVGInterpolationTypesMap::get( 27 const InterpolationTypes& SVGInterpolationTypesMap::get(
28 const PropertyHandle& property) const { 28 const PropertyHandle& property) const {
29 using ApplicableTypesMap = 29 using ApplicableTypesMap =
30 HashMap<PropertyHandle, std::unique_ptr<const InterpolationTypes>>; 30 HashMap<PropertyHandle, std::unique_ptr<const InterpolationTypes>>;
31 DEFINE_STATIC_LOCAL(ApplicableTypesMap, applicableTypesMap, ()); 31 DEFINE_STATIC_LOCAL(ApplicableTypesMap, applicableTypesMap, ());
32 auto entry = applicableTypesMap.find(property); 32 auto entry = applicableTypesMap.find(property);
33 if (entry != applicableTypesMap.end()) 33 if (entry != applicableTypesMap.end())
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 158
159 applicableTypes->push_back( 159 applicableTypes->push_back(
160 WTF::makeUnique<SVGValueInterpolationType>(attribute)); 160 WTF::makeUnique<SVGValueInterpolationType>(attribute));
161 161
162 auto addResult = 162 auto addResult =
163 applicableTypesMap.insert(property, std::move(applicableTypes)); 163 applicableTypesMap.insert(property, std::move(applicableTypes));
164 return *addResult.storedValue->value.get(); 164 return *addResult.storedValue->value.get();
165 } 165 }
166 166
167 } // namespace blink 167 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698