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

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

Issue 406843002: Optimize hasTagName when called on an HTMLElement / SVGElement (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 | « Source/build/scripts/templates/MakeQualifiedNames.cpp.tmpl ('k') | Source/core/dom/Element.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 cdaf08128e818bb3fb67ea74982e25e77a97862b..36758ea63b2a6c2baf5d29accdc69062562899fa 100644
--- a/Source/build/scripts/templates/MakeQualifiedNames.h.tmpl
+++ b/Source/build/scripts/templates/MakeQualifiedNames.h.tmpl
@@ -8,6 +8,9 @@
#include "wtf/PassOwnPtr.h"
namespace WebCore {
+
+class {{namespace}}QualifiedName : public QualifiedName { };
+
namespace {{namespace}}Names {
#ifndef {{namespace|to_macro_style}}_NAMES_HIDE_GLOBALS
@@ -16,7 +19,7 @@ extern const WTF::AtomicString {{namespace_prefix}}NamespaceURI;
// Tags
{% for tag in tags|sort %}
-extern const WebCore::QualifiedName {{tag|symbol}}Tag;
+extern const WebCore::{{namespace}}QualifiedName {{tag|symbol}}Tag;
{% endfor %}
// Attributes
@@ -27,7 +30,7 @@ extern const WebCore::QualifiedName {{attr|symbol}}Attr;
#endif // {{namespace|to_macro_style}}_NAMES_HIDE_GLOBALS
{% if tags %}
const unsigned {{namespace}}TagsCount = {{tags|count}};
-PassOwnPtr<const QualifiedName*[]> get{{namespace}}Tags();
+PassOwnPtr<const {{namespace}}QualifiedName*[]> get{{namespace}}Tags();
{% endif %}
const unsigned {{namespace}}AttrsCount = {{attrs|count}};
PassOwnPtr<const QualifiedName*[]> get{{namespace}}Attrs();
« no previous file with comments | « Source/build/scripts/templates/MakeQualifiedNames.cpp.tmpl ('k') | Source/core/dom/Element.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698