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

Unified Diff: third_party/WebKit/Source/build/scripts/templates/CSSPropertyDescriptor.h.tmpl

Issue 2706623004: Added CSSPropertyDescriptor.h.tmpl to generate CSSPropertyDescriptor.h. (Closed)
Patch Set: Created 3 years, 10 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/build/scripts/templates/CSSPropertyDescriptor.h.tmpl
diff --git a/third_party/WebKit/Source/core/css/properties/CSSPropertyDescriptor.h b/third_party/WebKit/Source/build/scripts/templates/CSSPropertyDescriptor.h.tmpl
similarity index 77%
rename from third_party/WebKit/Source/core/css/properties/CSSPropertyDescriptor.h
rename to third_party/WebKit/Source/build/scripts/templates/CSSPropertyDescriptor.h.tmpl
index e44adfb185c11e76eda45227b19fe426d886eac7..6012ba22efaeaa6dd49be747d8c349e74a827938 100644
--- a/third_party/WebKit/Source/core/css/properties/CSSPropertyDescriptor.h
+++ b/third_party/WebKit/Source/build/scripts/templates/CSSPropertyDescriptor.h.tmpl
@@ -12,9 +12,9 @@ class CSSParserContext;
// Stores function pointers matching those declared in CSSPropertyAPI.
struct CSSPropertyDescriptor {
- const CSSValue* (*parseSingleValue)(CSSParserTokenRange&,
- const CSSParserContext*);
- bool (*parseShorthand)(bool, CSSParserTokenRange&, const CSSParserContext*);
+ {% for api_method_name in ordered_api_method_names %}
+ {{all_api_methods[api_method_name].return_type}} (*{{api_method_name}}){{all_api_methods[api_method_name].parameters}};
+ {% endfor %}
// Returns the corresponding CSSPropertyDescriptor for a given CSSPropertyID.
// Use this function to access the API for a property. Returns a descriptor
« no previous file with comments | « third_party/WebKit/Source/build/scripts/make_css_property_apis.py ('k') | third_party/WebKit/Source/core/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698