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

Unified Diff: third_party/WebKit/Source/core/css/CSSSyntaxDescriptor.cpp

Issue 2658333003: Add smooth interpolation support for <length> custom properties (Closed)
Patch Set: Created 3 years, 11 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/LengthInterpolationFunctions.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/css/CSSSyntaxDescriptor.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSSyntaxDescriptor.cpp b/third_party/WebKit/Source/core/css/CSSSyntaxDescriptor.cpp
index 01fefa3aa9ca7b260ecaf96a38bc530b135ef09d..53d92429c236af7c5209861d4acca9e45eda0c0d 100644
--- a/third_party/WebKit/Source/core/css/CSSSyntaxDescriptor.cpp
+++ b/third_party/WebKit/Source/core/css/CSSSyntaxDescriptor.cpp
@@ -5,6 +5,7 @@
#include "core/css/CSSSyntaxDescriptor.h"
#include "core/animation/CSSColorInterpolationType.h"
+#include "core/animation/CSSLengthInterpolationType.h"
#include "core/animation/CSSValueInterpolationType.h"
#include "core/css/CSSCustomPropertyDeclaration.h"
#include "core/css/CSSURIValue.h"
@@ -229,6 +230,9 @@ InterpolationTypes CSSSyntaxDescriptor::createInterpolationTypes(
WTF::makeUnique<CSSColorInterpolationType>(property));
break;
case CSSSyntaxType::Length:
+ interpolationTypes.push_back(
+ WTF::makeUnique<CSSLengthInterpolationType>(property));
+ break;
case CSSSyntaxType::Number:
case CSSSyntaxType::Percentage:
case CSSSyntaxType::LengthPercentage:
« no previous file with comments | « third_party/WebKit/Source/core/animation/LengthInterpolationFunctions.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698