Chromium Code Reviews| Index: Source/bindings/templates/interface.cpp |
| diff --git a/Source/bindings/templates/interface.cpp b/Source/bindings/templates/interface.cpp |
| index 5bcef7a3262e1c13e170d2e8ba259ebf3bc40a55..629158b55da7237ee6aca99559f9203c14285eef 100644 |
| --- a/Source/bindings/templates/interface.cpp |
| +++ b/Source/bindings/templates/interface.cpp |
| @@ -432,7 +432,8 @@ ActiveDOMObject* {{v8_class_name}}::toActiveDOMObject(v8::Handle<v8::Object> wra |
| {##############################################################################} |
| -{% block create_wrapper_and_deref_object %} |
| +{% block create_wrapper %} |
|
Nils Barth (inactive)
2013/11/22 06:10:48
Split block in two so that {% if %} statement line
|
| +{% if not has_custom_to_v8 %} |
| v8::Handle<v8::Object> {{v8_class_name}}::createWrapper(PassRefPtr<{{cpp_class_name}}> impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) |
| { |
| ASSERT(impl); |
| @@ -458,6 +459,12 @@ v8::Handle<v8::Object> {{v8_class_name}}::createWrapper(PassRefPtr<{{cpp_class_n |
| return wrapper; |
| } |
| +{% endif %} |
| +{% endblock %} |
| + |
| + |
| +{##############################################################################} |
| +{% block deref_object %} |
| void {{v8_class_name}}::derefObject(void* object) |
| { |
| fromInternalPointer(object)->deref(); |