Chromium Code Reviews| 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); |
| }; |