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

Unified Diff: third_party/WebKit/Source/build/scripts/templates/CSSPropertyAPIFiles.h.tmpl

Issue 2669243009: Added CSSPropertyAPIMethods.json5 which defines all API methods. (Closed)
Patch Set: Added comment 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/CSSPropertyAPIFiles.h.tmpl
diff --git a/third_party/WebKit/Source/build/scripts/templates/CSSPropertyAPIFiles.h.tmpl b/third_party/WebKit/Source/build/scripts/templates/CSSPropertyAPIFiles.h.tmpl
index f379771514ae83b1687de26ba7ae6acbb7bbf70d..cf9e78d777d52f4dec04c192fdccfe2cb966a619 100644
--- a/third_party/WebKit/Source/build/scripts/templates/CSSPropertyAPIFiles.h.tmpl
+++ b/third_party/WebKit/Source/build/scripts/templates/CSSPropertyAPIFiles.h.tmpl
@@ -15,15 +15,9 @@ class CSSParserContext;
class {{api_classname}} : public CSSPropertyAPI {
public:
- {% if "parseSingleValue" in api_methods %}
- static const CSSValue* parseSingleValue(CSSParserTokenRange&,
- const CSSParserContext*);
- {% endif %}
- {% if "parseShorthand" in api_methods %}
- static HeapVector<CSSProperty>* parseShorthand(bool,
- CSSParserTokenRange&,
- const CSSParserContext*);
- {% endif %}
+ {% for api_method in api_methods if api_classname in api_method['classnames'] %}
sashab 2017/02/08 04:00:03 {% for api_method_name in property['api_methods']
+ {{api_method['definition']}}
sashab 2017/02/08 04:00:03 self.all_api_methods[api_method_name]['definition'
+ {% endfor %}
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698