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

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

Issue 2653733005: Added parseShorthand method from the parser to CSSPropertyAPI.h. (Closed)
Patch Set: Moved implementation check into macro in CSSPropertyDescriptor.h Created 3 years, 11 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 | « no previous file | third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp » ('j') | 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 457060f0e4c2e1601451339999db441ff99cb75c..93e8ecb7b3908c1bf36c0b2625faec380feb7dba 100644
--- a/third_party/WebKit/Source/build/scripts/templates/CSSPropertyDescriptor.cpp.tmpl
+++ b/third_party/WebKit/Source/build/scripts/templates/CSSPropertyDescriptor.cpp.tmpl
@@ -17,11 +17,11 @@ static CSSPropertyDescriptor cssPropertyDescriptors[] = {
// An invalid CSSPropertyDescriptor. When functions are added to
// CSSPropertyAPI, add a nullptr to represent their function pointers in the
// struct initaliser.
meade_UTC10 2017/01/25 04:28:18 I'm not sure I understand what this does, it's cre
- { nullptr, false },
+ { nullptr, nullptr },
// When functions are added to CSSPropertyAPI, also add them to the struct
// initaliser below.
{% for api_class in api_classes %}
- { {{api_class.classname}}::parseSingleValue, true },
+ { {{api_class.classname}}::parseSingleValue, {{api_class.classname}}::parseShorthand },
meade_UTC10 2017/01/25 04:28:18 And in this case it's defining the default impleme
aazzam 2017/01/25 04:35:19 the array cssPropertyDescriptors stores an invalid
meade_UTC10 2017/01/25 05:26:27 Maybe? :) I think it's worth changing the comments
{% endfor %}
};
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698