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

Unified Diff: Source/core/animation/LengthStyleInterpolation.h

Issue 1243313002: Migrate the remaining CSS properties interpolable as Lengths to LengthInterpolationType (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add composition tests Created 5 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/animation/LengthStyleInterpolation.h
diff --git a/Source/core/animation/LengthStyleInterpolation.h b/Source/core/animation/LengthStyleInterpolation.h
index f3626eaa7dbe6bc3528bce444e76798174bdff04..27a8322aa66de46329898d3e21d6017839c56127 100644
--- a/Source/core/animation/LengthStyleInterpolation.h
+++ b/Source/core/animation/LengthStyleInterpolation.h
@@ -16,7 +16,6 @@ class Length;
class CORE_EXPORT LengthStyleInterpolation : public StyleInterpolation {
public:
- typedef void (ComputedStyle::*LengthSetter)(const Length&);
typedef void NonInterpolableType;
static PassRefPtr<LengthStyleInterpolation> create(const CSSValue& start, const CSSValue& end, CSSPropertyID id, InterpolationRange range)
@@ -30,23 +29,16 @@ public:
static PassOwnPtr<InterpolableValue> toInterpolableValue(const CSSValue&, CSSPropertyID = CSSPropertyInvalid);
static PassRefPtrWillBeRawPtr<CSSPrimitiveValue> fromInterpolableValue(const InterpolableValue&, InterpolationRange);
- static void applyInterpolableValue(CSSPropertyID, const InterpolableValue&, InterpolationRange, StyleResolverState&, LengthSetter);
+ static void applyInterpolableValue(CSSPropertyID, const InterpolableValue&, InterpolationRange, StyleResolverState&);
private:
LengthStyleInterpolation(PassOwnPtr<InterpolableValue> start, PassOwnPtr<InterpolableValue> end, CSSPropertyID id, InterpolationRange range)
: StyleInterpolation(start, end, id)
, m_range(range)
- , m_lengthSetter(nullptr)
{
- if (isPixelsOrPercentOnly(*m_start) && isPixelsOrPercentOnly(*m_end))
- m_lengthSetter = lengthSetterForProperty(id);
}
- static bool isPixelsOrPercentOnly(const InterpolableValue&);
- static LengthSetter lengthSetterForProperty(CSSPropertyID);
-
InterpolationRange m_range;
- LengthSetter m_lengthSetter;
};
}
« no previous file with comments | « Source/core/animation/LengthPropertyFunctions.cpp ('k') | Source/core/animation/LengthStyleInterpolation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698