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

Unified Diff: Source/build/scripts/templates/MakeQualifiedNames.h.tmpl

Issue 137783012: MakeQualifiedNames should generate lazily created arrays for attributes and tags. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
Index: Source/build/scripts/templates/MakeQualifiedNames.h.tmpl
diff --git a/Source/build/scripts/templates/MakeQualifiedNames.h.tmpl b/Source/build/scripts/templates/MakeQualifiedNames.h.tmpl
index 7c614c787b4ed0d79627da08d0fa4204443c70dd..ce3a14a682e90b2fd505e39c09990a85d6c4e60e 100644
--- a/Source/build/scripts/templates/MakeQualifiedNames.h.tmpl
+++ b/Source/build/scripts/templates/MakeQualifiedNames.h.tmpl
@@ -27,10 +27,10 @@ extern const WebCore::QualifiedName {{attr|symbol}}Attr;
{%- if tags %}
const unsigned {{namespace}}TagsCount = {{tags|count}};
-const WebCore::QualifiedName* const* get{{namespace}}Tags();
+void get{{namespace}}Tags(WebCore::QualifiedName* tags[], unsigned length);
Inactive 2014/01/15 19:27:02 Passing the length here is a bit odd. Maybe, we ca
{%- endif %}
const unsigned {{namespace}}AttrsCount = {{attrs|count}};
-const WebCore::QualifiedName* const* get{{namespace}}Attrs();
+void get{{namespace}}Attrs(WebCore::QualifiedName* attributes[], unsigned length);
void init();

Powered by Google App Engine
This is Rietveld 408576698