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

Side by Side Diff: third_party/WebKit/Source/core/animation/CSSTranslateInterpolationType.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/CSSTranslateInterpolationType.h" 5 #include "core/animation/CSSTranslateInterpolationType.h"
6 6
7 #include <memory>
7 #include "core/animation/LengthInterpolationFunctions.h" 8 #include "core/animation/LengthInterpolationFunctions.h"
8 #include "core/css/CSSValueList.h" 9 #include "core/css/CSSValueList.h"
9 #include "core/css/resolver/StyleResolverState.h" 10 #include "core/css/resolver/StyleResolverState.h"
10 #include "platform/transforms/TranslateTransformOperation.h" 11 #include "platform/transforms/TranslateTransformOperation.h"
11 #include "wtf/PtrUtil.h" 12 #include "wtf/PtrUtil.h"
12 #include <memory>
13 13
14 namespace blink { 14 namespace blink {
15 15
16 namespace { 16 namespace {
17 17
18 InterpolationValue createNoneValue() { 18 InterpolationValue createNoneValue() {
19 return InterpolationValue(InterpolableList::create(0)); 19 return InterpolationValue(InterpolableList::create(0));
20 } 20 }
21 21
22 bool isNoneValue(const InterpolationValue& value) { 22 bool isNoneValue(const InterpolationValue& value) {
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 *list.get(TranslateZ), nullptr, conversionData, ValueRangeAll) 204 *list.get(TranslateZ), nullptr, conversionData, ValueRangeAll)
205 .pixels(); 205 .pixels();
206 206
207 RefPtr<TranslateTransformOperation> result = 207 RefPtr<TranslateTransformOperation> result =
208 TranslateTransformOperation::create(x, y, z, 208 TranslateTransformOperation::create(x, y, z,
209 TransformOperation::Translate3D); 209 TransformOperation::Translate3D);
210 state.style()->setTranslate(std::move(result)); 210 state.style()->setTranslate(std::move(result));
211 } 211 }
212 212
213 } // namespace blink 213 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698