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

Side by Side Diff: third_party/WebKit/Source/core/animation/SizeInterpolationFunctions.h

Issue 2280553002: Allow interpolation of background-size values with keywords in CSS Animations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove DCHECK Created 4 years, 3 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef SizeInterpolationFunctions_h
6 #define SizeInterpolationFunctions_h
7
8 #include "core/animation/InterpolationValue.h"
9 #include "core/animation/PairwiseInterpolationValue.h"
10 #include "core/style/FillLayer.h"
11 #include <memory>
12
13 namespace blink {
14
15 class CSSToLengthConversionData;
16 class CSSValue;
17
18 class SizeInterpolationFunctions {
19 STATIC_ONLY(SizeInterpolationFunctions);
20 public:
21 static InterpolationValue convertFillSizeSide(const FillSize&, float zoom, b ool convertWidth);
22 static InterpolationValue maybeConvertCSSSizeSide(const CSSValue&, bool conv ertWidth);
23 static PairwiseInterpolationValue maybeMergeSingles(InterpolationValue&& sta rt, InterpolationValue&& end);
24 static InterpolationValue createNeutralValue(const NonInterpolableValue*);
25 static bool nonInterpolableValuesAreCompatible(const NonInterpolableValue*, const NonInterpolableValue*);
26 static void composite(std::unique_ptr<InterpolableValue>&, RefPtr<NonInterpo lableValue>&, double underlyingFraction, const InterpolableValue&, const NonInte rpolableValue*);
27 static FillSize createFillSize(const InterpolableValue& interpolableValueA, const NonInterpolableValue* nonInterpolableValueA, const InterpolableValue& inte rpolableValueB, const NonInterpolableValue* nonInterpolableValueB, const CSSToLe ngthConversionData&);
28 };
29
30 } // namespace blink
31
32 #endif // SizeInterpolationFunctions_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698