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

Unified Diff: Source/build/scripts/templates/ElementWrapperFactory.cpp.tmpl

Issue 172033002: Remove WrapperTypeTraits (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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
« no previous file with comments | « Source/bindings/v8/custom/V8Uint8ClampedArrayCustom.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/build/scripts/templates/ElementWrapperFactory.cpp.tmpl
diff --git a/Source/build/scripts/templates/ElementWrapperFactory.cpp.tmpl b/Source/build/scripts/templates/ElementWrapperFactory.cpp.tmpl
index e07b6fc8eb94761459dfca6c43b395ac31bee8d0..e71b9750c378ceb23b0f9945b9a1d74bc9d50f48 100644
--- a/Source/build/scripts/templates/ElementWrapperFactory.cpp.tmpl
+++ b/Source/build/scripts/templates/ElementWrapperFactory.cpp.tmpl
@@ -79,14 +79,14 @@ const WrapperTypeInfo* findWrapperTypeFor{{namespace}}TagName(const AtomicString
// FIXME: This seems wrong. We should list every interface here, not
// just the ones that have specialized JavaScript interfaces.
{%- for tag in tags|sort if tag.has_js_interface %}
- map.set({{tag|symbol}}Tag.localName().impl(), WrapperTypeTraits<{{tag.js_interface}}>::wrapperTypeInfo());
+ map.set({{tag|symbol}}Tag.localName().impl(), &V8{{tag.js_interface}}::wrapperTypeInfo);
{%- endfor %}
}
if (const WrapperTypeInfo* result = map.get(name.impl()))
return result;
- return WrapperTypeTraits<{{fallback_js_interface}}>::wrapperTypeInfo();
+ return &V8{{fallback_js_interface}}::wrapperTypeInfo;
}
}
« no previous file with comments | « Source/bindings/v8/custom/V8Uint8ClampedArrayCustom.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698