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

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

Issue 2669243009: Added CSSPropertyAPIMethods.json5 which defines all API methods. (Closed)
Patch Set: added comments, renamed variables 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.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 0cc67d6d5b89221417b0503fc38658112617126a..bf64cae615521a2584f1ba787650c52c98978e43 100644
--- a/third_party/WebKit/Source/build/scripts/templates/CSSPropertyDescriptor.cpp.tmpl
+++ b/third_party/WebKit/Source/build/scripts/templates/CSSPropertyDescriptor.cpp.tmpl
@@ -16,17 +16,19 @@ static_assert(
static CSSPropertyDescriptor cssPropertyDescriptors[] = {
// An invalid CSSPropertyDescriptor.
{
- {% for valid_api_method in valid_api_methods %}
+ {% for api_method in ordered_api_method_names %}
nullptr,
{% endfor %}
},
// CSSPropertyDescriptors for all valid properties.
{% for api_class in api_classes %}
{
- {% for api_method in api_methods if api_method in api_class.api_methods %}
- {{api_class.classname}}::{{api_method}},
+ {% for api_method_name in ordered_api_method_names %}
+ {% if api_method_name in api_class.methods_for_class %}
+ {{api_class.classname}}::{{api_method_name}},
{% else %}
nullptr,
+ {% endif %}
{% endfor %}
},
{% endfor %}

Powered by Google App Engine
This is Rietveld 408576698