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

Side by Side Diff: third_party/WebKit/Source/core/animation/SVGRectInterpolationType.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 #include "core/animation/SVGRectInterpolationType.h" 4 #include "core/animation/SVGRectInterpolationType.h"
5 5
6 #include <memory>
6 #include "core/animation/InterpolationEnvironment.h" 7 #include "core/animation/InterpolationEnvironment.h"
7 #include "core/animation/StringKeyframe.h" 8 #include "core/animation/StringKeyframe.h"
8 #include "core/svg/SVGRect.h" 9 #include "core/svg/SVGRect.h"
9 #include "wtf/StdLibExtras.h" 10 #include "wtf/StdLibExtras.h"
10 #include <memory>
11 11
12 namespace blink { 12 namespace blink {
13 13
14 enum RectComponentIndex : unsigned { 14 enum RectComponentIndex : unsigned {
15 RectX, 15 RectX,
16 RectY, 16 RectY,
17 RectWidth, 17 RectWidth,
18 RectHeight, 18 RectHeight,
19 RectComponentIndexCount, 19 RectComponentIndexCount,
20 }; 20 };
(...skipping 29 matching lines...) Expand all
50 const InterpolableList& list = toInterpolableList(interpolableValue); 50 const InterpolableList& list = toInterpolableList(interpolableValue);
51 SVGRect* result = SVGRect::create(); 51 SVGRect* result = SVGRect::create();
52 result->setX(toInterpolableNumber(list.get(RectX))->value()); 52 result->setX(toInterpolableNumber(list.get(RectX))->value());
53 result->setY(toInterpolableNumber(list.get(RectY))->value()); 53 result->setY(toInterpolableNumber(list.get(RectY))->value());
54 result->setWidth(toInterpolableNumber(list.get(RectWidth))->value()); 54 result->setWidth(toInterpolableNumber(list.get(RectWidth))->value());
55 result->setHeight(toInterpolableNumber(list.get(RectHeight))->value()); 55 result->setHeight(toInterpolableNumber(list.get(RectHeight))->value());
56 return result; 56 return result;
57 } 57 }
58 58
59 } // namespace blink 59 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698