| Index: Source/bindings/templates/interface.cpp
|
| diff --git a/Source/bindings/templates/interface.cpp b/Source/bindings/templates/interface.cpp
|
| index 21272949c6b7b700e50c5964237c411e64ed70f4..680d262aec62004f2f21ddd19c1ed3f9317146de 100644
|
| --- a/Source/bindings/templates/interface.cpp
|
| +++ b/Source/bindings/templates/interface.cpp
|
| @@ -1246,13 +1246,13 @@ void {{v8_class}}::derefObject(ScriptWrappableBase* internalPointer)
|
| {% endif %}
|
| }
|
|
|
| -PersistentNode* {{v8_class}}::createPersistentHandle(ScriptWrappableBase* internalPointer)
|
| +WrapperPersistentNode* {{v8_class}}::createPersistentHandle(ScriptWrappableBase* internalPointer)
|
| {
|
| {% if gc_type == 'GarbageCollectedObject' %}
|
| - return new Persistent<{{cpp_class}}>(internalPointer->toImpl<{{cpp_class}}>());
|
| + return WrapperPersistent<{{cpp_class}}>::create(internalPointer->toImpl<{{cpp_class}}>());
|
| {% elif gc_type == 'WillBeGarbageCollectedObject' %}
|
| #if ENABLE(OILPAN)
|
| - return new Persistent<{{cpp_class}}>(internalPointer->toImpl<{{cpp_class}}>());
|
| + return WrapperPersistent<{{cpp_class}}>::create(internalPointer->toImpl<{{cpp_class}}>());
|
| #else
|
| ASSERT_NOT_REACHED();
|
| return 0;
|
|
|