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

Unified Diff: third_party/WebKit/Source/core/animation/CSSLengthPairInterpolationType.h

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/CSSLengthPairInterpolationType.h
diff --git a/third_party/WebKit/Source/core/animation/CSSLengthPairInterpolationType.h b/third_party/WebKit/Source/core/animation/CSSLengthPairInterpolationType.h
index 750f9510792ccc717cbf5445ac999c22cc848362..d167f92ee008e964e182101586599495d55da392 100644
--- a/third_party/WebKit/Source/core/animation/CSSLengthPairInterpolationType.h
+++ b/third_party/WebKit/Source/core/animation/CSSLengthPairInterpolationType.h
@@ -5,8 +5,8 @@
#ifndef CSSLengthPairInterpolationType_h
#define CSSLengthPairInterpolationType_h
-#include "core/animation/CSSLengthInterpolationType.h"
#include "core/animation/CSSLengthListInterpolationType.h"
+#include "core/animation/LengthInterpolationFunctions.h"
#include "core/animation/ListInterpolationFunctions.h"
#include "core/css/CSSValuePair.h"
@@ -23,7 +23,8 @@ private:
{
const CSSValuePair& pair = toCSSValuePair(value);
return ListInterpolationFunctions::createList(2, [&pair](size_t index) {
- return CSSLengthInterpolationType::maybeConvertCSSValue(index == 0 ? pair.first() : pair.second());
+ const CSSValue& item = index == 0 ? pair.first() : pair.second();
+ return LengthInterpolationFunctions::maybeConvertCSSValue(item);
});
}
};

Powered by Google App Engine
This is Rietveld 408576698