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

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

Issue 2812523002: Support animating <resolution> custom properties (Closed)
Patch Set: Created 3 years, 8 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 a37a2339e43cda459500697040841228233fde73..8ec4dffd078307cb9273012874c703b7dca5890a 100644
--- a/third_party/WebKit/Source/core/animation/CSSInterpolationTypesMap.cpp
+++ b/third_party/WebKit/Source/core/animation/CSSInterpolationTypesMap.cpp
@@ -25,6 +25,7 @@
#include "core/animation/CSSPathInterpolationType.h"
#include "core/animation/CSSPositionAxisListInterpolationType.h"
#include "core/animation/CSSPositionInterpolationType.h"
+#include "core/animation/CSSResolutionInterpolationType.h"
#include "core/animation/CSSRotateInterpolationType.h"
#include "core/animation/CSSScaleInterpolationType.h"
#include "core/animation/CSSShadowListInterpolationType.h"
@@ -356,13 +357,16 @@ CSSInterpolationTypesMap::CreateCSSInterpolationTypesForSyntax(
case CSSSyntaxType::kNumber:
result.push_back(WTF::MakeUnique<CSSNumberInterpolationType>(property));
break;
+ case CSSSyntaxType::kResolution:
+ result.push_back(
+ WTF::MakeUnique<CSSResolutionInterpolationType>(property));
+ break;
case CSSSyntaxType::kTime:
result.push_back(WTF::MakeUnique<CSSTimeInterpolationType>(property));
break;
case CSSSyntaxType::kImage:
case CSSSyntaxType::kUrl:
case CSSSyntaxType::kInteger:
- case CSSSyntaxType::kResolution:
case CSSSyntaxType::kTransformFunction:
// TODO(alancutter): Support smooth interpolation of these types.
break;

Powered by Google App Engine
This is Rietveld 408576698