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

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

Issue 2684353002: Added CSSPropertyDescriptor.h.tmpl to generate CSSPropertyDescriptor.h. (Closed)
Patch Set: rebase 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 52%
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..828c9ef3fae092be7ddda4ddf1381532ee6b8898 100644
--- a/third_party/WebKit/Source/core/css/properties/CSSPropertyDescriptor.h
+++ b/third_party/WebKit/Source/build/scripts/templates/CSSPropertyDescriptor.h.tmpl
@@ -12,13 +12,10 @@ 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 %}
+ {{api_methods[api_method_name].return_type}} (*{{api_method_name}}){{api_methods[api_method_name].parameters}};
+ {% endfor %}
sashab 2017/02/10 01:24:34 Put comment back
- // Returns the corresponding CSSPropertyDescriptor for a given CSSPropertyID.
- // Use this function to access the API for a property. Returns a descriptor
- // with isValid set to false if no descriptor exists for this ID.
static const CSSPropertyDescriptor& get(CSSPropertyID);
};

Powered by Google App Engine
This is Rietveld 408576698