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

Unified Diff: third_party/WebKit/Source/core/animation/CSSSizeListInterpolationType.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/CSSSizeListInterpolationType.h
diff --git a/third_party/WebKit/Source/core/animation/CSSSizeListInterpolationType.h b/third_party/WebKit/Source/core/animation/CSSSizeListInterpolationType.h
index fbd1eed5ef7f09106a1c10afae8722433a694d8c..824992e8a27ab65418496853842ec6562f763ccc 100644
--- a/third_party/WebKit/Source/core/animation/CSSSizeListInterpolationType.h
+++ b/third_party/WebKit/Source/core/animation/CSSSizeListInterpolationType.h
@@ -5,8 +5,8 @@
#ifndef CSSSizeListInterpolationType_h
#define CSSSizeListInterpolationType_h
-#include "core/animation/CSSLengthInterpolationType.h"
#include "core/animation/CSSLengthListInterpolationType.h"
+#include "core/animation/LengthInterpolationFunctions.h"
#include "core/animation/ListInterpolationFunctions.h"
#include "core/css/CSSValueList.h"
#include "core/css/CSSValuePair.h"
@@ -36,7 +36,8 @@ private:
if (!item.isValuePair())
return nullptr;
const CSSValuePair& pair = toCSSValuePair(item);
- return CSSLengthInterpolationType::maybeConvertCSSValue(index % 2 == 0 ? pair.first() : pair.second());
+ const CSSValue& side = index % 2 == 0 ? pair.first() : pair.second();
+ return LengthInterpolationFunctions::maybeConvertCSSValue(side);
});
}
};

Powered by Google App Engine
This is Rietveld 408576698