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 b78f752ae39a7f37f3efaddf966da72b98c5b664..7903c3b680192164ada4ea55b0dee379bb8ac6be 100644 |
--- a/third_party/WebKit/Source/build/scripts/templates/CSSPropertyDescriptor.cpp.tmpl |
+++ b/third_party/WebKit/Source/build/scripts/templates/CSSPropertyDescriptor.cpp.tmpl |
@@ -1,3 +1,4 @@ |
+{% from 'macros.tmpl' import license, print_if %} |
// Copyright 2016 The Chromium Authors. All rights reserved. |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
@@ -45,8 +46,8 @@ static_assert(cssPropertyDescriptors[INVALID_DESCRIPTOR_INDEX].{{api_method_name |
// Lookup table mapping CSSPropertyID to index in the cssPropertyDescriptors |
// table |
static size_t CSSDescriptorIndices[] = { |
- {% for id in descriptor_indices %} |
- {{id}}, |
+ {% for item in descriptor_indices %} |
+ {{descriptor_indices[item].id}},{{print_if(descriptor_indices[item].api != None, ' // ' ~ descriptor_indices[item].api)}} |
{% endfor %} |
}; |