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

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

Issue 2849133002: Added property id comments to CSSDescriptorIndices entries. (Closed)
Patch Set: replaced unrelated whitespace Created 3 years, 8 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
« no previous file with comments | « third_party/WebKit/Source/build/scripts/make_css_property_apis.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 %}
};
« no previous file with comments | « third_party/WebKit/Source/build/scripts/make_css_property_apis.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698