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

Unified Diff: Source/build/scripts/templates/CSSPropertyMetadata.cpp.tmpl

Issue 454423003: Add animatable flag to CSSProperties.in (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 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 | « Source/build/scripts/make_css_property_metadata.py ('k') | Source/core/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/build/scripts/templates/CSSPropertyMetadata.cpp.tmpl
diff --git a/Source/build/scripts/templates/CSSPropertyMetadata.cpp.tmpl b/Source/build/scripts/templates/CSSPropertyMetadata.cpp.tmpl
new file mode 100644
index 0000000000000000000000000000000000000000..1c1f341fe6ead904a4d5116841ab55d818e7c7d3
--- /dev/null
+++ b/Source/build/scripts/templates/CSSPropertyMetadata.cpp.tmpl
@@ -0,0 +1,24 @@
+{% from 'macros.tmpl' import license %}
+{{license()}}
+
+#include "config.h"
+#include "core/css/CSSPropertyMetadata.h"
+
+namespace blink {
+
+bool CSSPropertyMetadata::isAnimatableProperty(CSSPropertyID property)
+{
+ switch(property) {
+ case CSSPropertyInvalid:
+ ASSERT_NOT_REACHED();
+ return false;
+ {% for property_id, property in properties.items() if property.animatable %}
+ case {{property_id}}:
+ {% endfor %}
+ return true;
+ default:
+ return false;
+ }
+}
+
+} // namespace blink
« no previous file with comments | « Source/build/scripts/make_css_property_metadata.py ('k') | Source/core/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698