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

Unified Diff: third_party/WebKit/Source/core/animation/FilterInterpolationFunctions.cpp

Issue 2283783002: Move static methods out of CSSLengthInterpolationType to LengthInterpolationFunctions (Closed)
Patch Set: Fix compile 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/animation/FilterInterpolationFunctions.cpp
diff --git a/third_party/WebKit/Source/core/animation/FilterInterpolationFunctions.cpp b/third_party/WebKit/Source/core/animation/FilterInterpolationFunctions.cpp
index 10756fe39e1d5e0e7e78ac35b796cf3d1f2f86cb..bd64c09966aa82d5185abf8fb157b1e7ba3b023b 100644
--- a/third_party/WebKit/Source/core/animation/FilterInterpolationFunctions.cpp
+++ b/third_party/WebKit/Source/core/animation/FilterInterpolationFunctions.cpp
@@ -4,7 +4,7 @@
#include "core/animation/FilterInterpolationFunctions.h"
-#include "core/animation/CSSLengthInterpolationType.h"
+#include "core/animation/LengthInterpolationFunctions.h"
#include "core/animation/ShadowInterpolationFunctions.h"
#include "core/css/CSSFunctionValue.h"
#include "core/css/CSSPrimitiveValue.h"
@@ -128,9 +128,9 @@ InterpolationValue FilterInterpolationFunctions::maybeConvertCSSFilter(const CSS
case FilterOperation::BLUR: {
if (filter.length() == 0)
- result.interpolableValue = CSSLengthInterpolationType::createNeutralInterpolableValue();
+ result.interpolableValue = LengthInterpolationFunctions::createNeutralInterpolableValue();
else
- result = CSSLengthInterpolationType::maybeConvertCSSValue(filter.item(0));
+ result = LengthInterpolationFunctions::maybeConvertCSSValue(filter.item(0));
break;
}
@@ -171,7 +171,7 @@ InterpolationValue FilterInterpolationFunctions::maybeConvertFilter(const Filter
break;
case FilterOperation::BLUR:
- result = CSSLengthInterpolationType::maybeConvertLength(toBlurFilterOperation(filter).stdDeviation(), zoom);
+ result = LengthInterpolationFunctions::maybeConvertLength(toBlurFilterOperation(filter).stdDeviation(), zoom);
break;
case FilterOperation::DROP_SHADOW: {
@@ -212,7 +212,7 @@ std::unique_ptr<InterpolableValue> FilterInterpolationFunctions::createNoneValue
return InterpolableNumber::create(1);
case FilterOperation::BLUR:
- return CSSLengthInterpolationType::createNeutralInterpolableValue();
+ return LengthInterpolationFunctions::createNeutralInterpolableValue();
case FilterOperation::DROP_SHADOW:
return ShadowInterpolationFunctions::createNeutralInterpolableValue();
@@ -251,7 +251,7 @@ FilterOperation* FilterInterpolationFunctions::createFilter(const InterpolableVa
}
case FilterOperation::BLUR: {
- Length stdDeviation = CSSLengthInterpolationType::createLength(interpolableValue, nonInterpolableValue.typeNonInterpolableValue(), state.cssToLengthConversionData(), ValueRangeNonNegative);
+ Length stdDeviation = LengthInterpolationFunctions::createLength(interpolableValue, nonInterpolableValue.typeNonInterpolableValue(), state.cssToLengthConversionData(), ValueRangeNonNegative);
return BlurFilterOperation::create(stdDeviation);
}

Powered by Google App Engine
This is Rietveld 408576698