Chromium Code Reviews| Index: third_party/WebKit/Source/build/scripts/templates/CSSPropertyDescriptor.cpp.tmpl |
| diff --git a/third_party/WebKit/Source/build/scripts/templates/CSSPropertyDescriptor.cpp.tmpl b/third_party/WebKit/Source/build/scripts/templates/CSSPropertyDescriptor.cpp.tmpl |
| index 457060f0e4c2e1601451339999db441ff99cb75c..6fb06b86be889d5efcf3f7b95a0de954d17934f1 100644 |
| --- a/third_party/WebKit/Source/build/scripts/templates/CSSPropertyDescriptor.cpp.tmpl |
| +++ b/third_party/WebKit/Source/build/scripts/templates/CSSPropertyDescriptor.cpp.tmpl |
| @@ -14,14 +14,23 @@ static_assert( |
| "CSSPropertyDescriptor must be a POD to support using initializer lists."); |
| static CSSPropertyDescriptor cssPropertyDescriptors[] = { |
| - // An invalid CSSPropertyDescriptor. When functions are added to |
| - // CSSPropertyAPI, add a nullptr to represent their function pointers in the |
| - // struct initaliser. |
| - { nullptr, false }, |
| - // When functions are added to CSSPropertyAPI, also add them to the struct |
| - // initaliser below. |
| + // An invalid CSSPropertyDescriptor. |
| + { |
| + {% for valid_api_method in valid_api_methods %} |
| + nullptr, |
| + {% endfor %} |
| + }, |
| + // CSSPropertyDescriptors for all valid properties. |
| {% for api_class in api_classes %} |
| - { {{api_class.classname}}::parseSingleValue, true }, |
| + { |
| + {% for valid_api_method in valid_api_methods %} |
| + {% if valid_api_method in api_class.api_methods %} |
| + {{ api_class.classname }}:: {{ valid_api_method }}, |
|
ktyliu
2017/02/01 00:32:29
remove extra space after {{ and before }} ?
aazzam
2017/02/01 06:02:28
done :)
|
| + {% else %} |
| + nullptr, |
| + {% endif %} |
| + {% endfor %} |
| + }, |
| {% endfor %} |
| }; |