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

Side by Side Diff: third_party/WebKit/Source/core/animation/CSSVisibilityInterpolationType.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/CSSVisibilityInterpolationType.h" 5 #include "core/animation/CSSVisibilityInterpolationType.h"
6 6
7 #include <memory>
7 #include "core/css/CSSPrimitiveValueMappings.h" 8 #include "core/css/CSSPrimitiveValueMappings.h"
8 #include "core/css/resolver/StyleResolverState.h" 9 #include "core/css/resolver/StyleResolverState.h"
9 #include "wtf/PtrUtil.h" 10 #include "wtf/PtrUtil.h"
10 #include <memory>
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class CSSVisibilityNonInterpolableValue : public NonInterpolableValue { 14 class CSSVisibilityNonInterpolableValue : public NonInterpolableValue {
15 public: 15 public:
16 ~CSSVisibilityNonInterpolableValue() final {} 16 ~CSSVisibilityNonInterpolableValue() final {}
17 17
18 static PassRefPtr<CSSVisibilityNonInterpolableValue> create(EVisibility start, 18 static PassRefPtr<CSSVisibilityNonInterpolableValue> create(EVisibility start,
19 EVisibility end) { 19 EVisibility end) {
20 return adoptRef(new CSSVisibilityNonInterpolableValue(start, end)); 20 return adoptRef(new CSSVisibilityNonInterpolableValue(start, end));
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 // Visibility interpolation has been deferred to application time here due to 185 // Visibility interpolation has been deferred to application time here due to
186 // its non-linear behaviour. 186 // its non-linear behaviour.
187 double fraction = toInterpolableNumber(interpolableValue).value(); 187 double fraction = toInterpolableNumber(interpolableValue).value();
188 EVisibility visibility = 188 EVisibility visibility =
189 toCSSVisibilityNonInterpolableValue(nonInterpolableValue) 189 toCSSVisibilityNonInterpolableValue(nonInterpolableValue)
190 ->visibility(fraction); 190 ->visibility(fraction);
191 state.style()->setVisibility(visibility); 191 state.style()->setVisibility(visibility);
192 } 192 }
193 193
194 } // namespace blink 194 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698