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

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

Issue 2694103009: Support animating <time> custom properties (Closed)
Patch Set: Undo git fail 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
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 26bdb04726325217ade6c09c000568fc8c0851d4..c67fa135331d4055b9556ea196c9d41aca12c22a 100644
--- a/third_party/WebKit/Source/core/animation/CSSInterpolationTypesMap.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSInterpolationTypesMap.cpp
@@ -30,6 +30,7 @@
#include "core/animation/CSSShadowListInterpolationType.h"
#include "core/animation/CSSSizeListInterpolationType.h"
#include "core/animation/CSSTextIndentInterpolationType.h"
+#include "core/animation/CSSTimeInterpolationType.h"
#include "core/animation/CSSTransformInterpolationType.h"
#include "core/animation/CSSTransformOriginInterpolationType.h"
#include "core/animation/CSSTranslateInterpolationType.h"
@@ -354,10 +355,12 @@ CSSInterpolationTypesMap::createCSSInterpolationTypesForSyntax(
case CSSSyntaxType::Number:
result.push_back(WTF::makeUnique<CSSNumberInterpolationType>(property));
break;
+ case CSSSyntaxType::Time:
+ result.push_back(WTF::makeUnique<CSSTimeInterpolationType>(property));
+ break;
case CSSSyntaxType::Image:
case CSSSyntaxType::Url:
case CSSSyntaxType::Integer:
- case CSSSyntaxType::Time:
case CSSSyntaxType::Resolution:
case CSSSyntaxType::TransformFunction:
// TODO(alancutter): Support smooth interpolation of these types.
« no previous file with comments | « third_party/WebKit/Source/core/animation/BUILD.gn ('k') | third_party/WebKit/Source/core/animation/CSSTimeInterpolationType.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698