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

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

Issue 2649103008: Revert of Add smooth interpolation support for <color> 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/css/CSSSyntaxDescriptor.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/PropertyRegistration.cpp
diff --git a/third_party/WebKit/Source/core/css/PropertyRegistration.cpp b/third_party/WebKit/Source/core/css/PropertyRegistration.cpp
index fc591498d1468864a635b801473f7f12cd4b092c..71bbc5d70c958adfce787c813ccb91353f799d22 100644
--- a/third_party/WebKit/Source/core/css/PropertyRegistration.cpp
+++ b/third_party/WebKit/Source/core/css/PropertyRegistration.cpp
@@ -4,6 +4,7 @@
#include "core/css/PropertyRegistration.h"
+#include "core/animation/CSSValueInterpolationType.h"
#include "core/css/CSSStyleSheet.h"
#include "core/css/CSSSyntaxDescriptor.h"
#include "core/css/CSSValueList.h"
@@ -60,6 +61,17 @@
return true;
}
+InterpolationTypes interpolationTypesForSyntax(const AtomicString& propertyName,
+ const CSSSyntaxDescriptor&) {
+ PropertyHandle property(propertyName);
+ InterpolationTypes interpolationTypes;
+ // TODO(alancutter): Read the syntax descriptor and add the appropriate
+ // CSSInterpolationType subclasses.
+ interpolationTypes.push_back(
+ WTF::makeUnique<CSSValueInterpolationType>(property));
+ return interpolationTypes;
+}
+
void PropertyRegistration::registerProperty(
ExecutionContext* executionContext,
const PropertyDescriptor& descriptor,
@@ -94,7 +106,7 @@
}
InterpolationTypes interpolationTypes =
- syntaxDescriptor.createInterpolationTypes(atomicName);
+ interpolationTypesForSyntax(atomicName, syntaxDescriptor);
if (descriptor.hasInitialValue()) {
CSSTokenizer tokenizer(descriptor.initialValue());
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSSyntaxDescriptor.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698