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

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

Issue 450103005: Add inherited 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
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
index 1c1f341fe6ead904a4d5116841ab55d818e7c7d3..f2d267012c0fa6815cbeda091799a6838333f8eb 100644
--- a/Source/build/scripts/templates/CSSPropertyMetadata.cpp.tmpl
+++ b/Source/build/scripts/templates/CSSPropertyMetadata.cpp.tmpl
@@ -5,14 +5,15 @@
#include "core/css/CSSPropertyMetadata.h"
namespace blink {
+{% for flag, function_name in switches %}
-bool CSSPropertyMetadata::isAnimatableProperty(CSSPropertyID property)
+bool CSSPropertyMetadata::{{function_name}}(CSSPropertyID property)
{
switch(property) {
case CSSPropertyInvalid:
ASSERT_NOT_REACHED();
return false;
- {% for property_id, property in properties.items() if property.animatable %}
+ {% for property_id, property in properties.items() if property[flag] %}
case {{property_id}}:
{% endfor %}
return true;
@@ -20,5 +21,6 @@ bool CSSPropertyMetadata::isAnimatableProperty(CSSPropertyID property)
return false;
}
}
+{% endfor %}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698