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

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

Issue 2692273010: Support animating <angle> custom properties (Closed)
Patch Set: norebaseline Created 3 years, 10 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
« no previous file with comments | « third_party/WebKit/Source/core/animation/CSSAngleInterpolationType.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/animation/CSSInterpolationTypesMap.cpp
diff --git a/third_party/WebKit/Source/core/animation/CSSInterpolationTypesMap.cpp b/third_party/WebKit/Source/core/animation/CSSInterpolationTypesMap.cpp
index 06b707d8353fb22edf79a9fa10b5c40d75d7db2d..26bdb04726325217ade6c09c000568fc8c0851d4 100644
--- a/third_party/WebKit/Source/core/animation/CSSInterpolationTypesMap.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSInterpolationTypesMap.cpp
@@ -5,6 +5,7 @@
#include "core/animation/CSSInterpolationTypesMap.h"
#include <memory>
+#include "core/animation/CSSAngleInterpolationType.h"
#include "core/animation/CSSBasicShapeInterpolationType.h"
#include "core/animation/CSSBorderImageLengthBoxInterpolationType.h"
#include "core/animation/CSSClipInterpolationType.h"
@@ -339,6 +340,9 @@ CSSInterpolationTypesMap::createCSSInterpolationTypesForSyntax(
}
switch (component.m_type) {
+ case CSSSyntaxType::Angle:
+ result.push_back(WTF::makeUnique<CSSAngleInterpolationType>(property));
+ break;
case CSSSyntaxType::Color:
result.push_back(WTF::makeUnique<CSSColorInterpolationType>(property));
break;
@@ -353,7 +357,6 @@ CSSInterpolationTypesMap::createCSSInterpolationTypesForSyntax(
case CSSSyntaxType::Image:
case CSSSyntaxType::Url:
case CSSSyntaxType::Integer:
- case CSSSyntaxType::Angle:
case CSSSyntaxType::Time:
case CSSSyntaxType::Resolution:
case CSSSyntaxType::TransformFunction:
« no previous file with comments | « third_party/WebKit/Source/core/animation/CSSAngleInterpolationType.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698