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

Side by Side Diff: third_party/WebKit/Source/core/animation/CSSVisibilityInterpolationType.cpp

Issue 2384263003: Reflow comments in core/animation and subdirs (Closed)
Patch Set: Created 4 years, 2 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 "core/css/CSSPrimitiveValueMappings.h" 7 #include "core/css/CSSPrimitiveValueMappings.h"
8 #include "core/css/resolver/StyleResolverState.h" 8 #include "core/css/resolver/StyleResolverState.h"
9 #include "wtf/PtrUtil.h" 9 #include "wtf/PtrUtil.h"
10 #include <memory> 10 #include <memory>
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 double underlyingFraction, 173 double underlyingFraction,
174 const InterpolationValue& value, 174 const InterpolationValue& value,
175 double interpolationFraction) const { 175 double interpolationFraction) const {
176 underlyingValueOwner.set(*this, value); 176 underlyingValueOwner.set(*this, value);
177 } 177 }
178 178
179 void CSSVisibilityInterpolationType::apply( 179 void CSSVisibilityInterpolationType::apply(
180 const InterpolableValue& interpolableValue, 180 const InterpolableValue& interpolableValue,
181 const NonInterpolableValue* nonInterpolableValue, 181 const NonInterpolableValue* nonInterpolableValue,
182 InterpolationEnvironment& environment) const { 182 InterpolationEnvironment& environment) const {
183 // Visibility interpolation has been deferred to application time here due to its non-linear behaviour. 183 // Visibility interpolation has been deferred to application time here due to
184 // its non-linear behaviour.
184 double fraction = toInterpolableNumber(interpolableValue).value(); 185 double fraction = toInterpolableNumber(interpolableValue).value();
185 EVisibility visibility = 186 EVisibility visibility =
186 toCSSVisibilityNonInterpolableValue(nonInterpolableValue) 187 toCSSVisibilityNonInterpolableValue(nonInterpolableValue)
187 ->visibility(fraction); 188 ->visibility(fraction);
188 environment.state().style()->setVisibility(visibility); 189 environment.state().style()->setVisibility(visibility);
189 } 190 }
190 191
191 } // namespace blink 192 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698