Index: Source/bindings/templates/interface.cpp |
diff --git a/Source/bindings/templates/interface.cpp b/Source/bindings/templates/interface.cpp |
index 5f7a781f2315cd2e2cc060284316aa0a6c85cb7b..e6f1422d424731d452c99e7d2a9472d798338b08 100644 |
--- a/Source/bindings/templates/interface.cpp |
+++ b/Source/bindings/templates/interface.cpp |
@@ -1310,7 +1310,7 @@ v8::Handle<v8::Object> {{v8_class}}::createWrapper({{pass_ref_ptr}}<{{cpp_class} |
{##############################################################################} |
-{% block deref_object_and_to_v8_no_inline %} |
+{% block deref_object %} |
void {{v8_class}}::derefObject(void* object) |
{ |
{% set oilpan_conditional = '!ENABLE(OILPAN)' if is_will_be_garbage_collected |
@@ -1320,10 +1320,17 @@ void {{v8_class}}::derefObject(void* object) |
{% endfilter %} |
} |
+{% endblock %} |
+ |
+ |
+{##############################################################################} |
+{% block to_v8_no_inline %} |
+{% if has_class_bindings %} |
template<> |
v8::Handle<v8::Value> toV8NoInline({{cpp_class}}* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) |
{ |
return toV8(impl, creationContext, isolate); |
} |
+{% endif %} |
{% endblock %} |