| Index: Source/bindings/core/v8/ScriptWrappable.cpp
|
| diff --git a/Source/bindings/core/v8/ScriptWrappable.cpp b/Source/bindings/core/v8/ScriptWrappable.cpp
|
| index 3ce578564aac0e62fd935f36a04e97bf0a0c291a..faf703310325bcc36daa3a3bf80fd83a5e427bf9 100644
|
| --- a/Source/bindings/core/v8/ScriptWrappable.cpp
|
| +++ b/Source/bindings/core/v8/ScriptWrappable.cpp
|
| @@ -5,6 +5,9 @@
|
| #include "config.h"
|
| #include "bindings/core/v8/ScriptWrappable.h"
|
|
|
| +#include "bindings/core/v8/DOMDataStore.h"
|
| +#include "bindings/core/v8/V8DOMWrapper.h"
|
| +
|
| namespace blink {
|
|
|
| #if COMPILER(MSVC)
|
| @@ -21,4 +24,20 @@ struct SameSizeAsScriptWrappable : public ScriptWrappableBase {
|
|
|
| COMPILE_ASSERT(sizeof(ScriptWrappable) <= sizeof(SameSizeAsScriptWrappable), ScriptWrappable_should_stay_small);
|
|
|
| +v8::Handle<v8::Object> ScriptWrappable::wrap(v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
|
| +{
|
| + ASSERT(!DOMDataStore::containsWrapperNonTemplate(this, isolate));
|
| +
|
| + const WrapperTypeInfo* wrapperType = wrapperTypeInfo();
|
| +
|
| + v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext, wrapperType, toInternalPointer(), isolate);
|
| + if (UNLIKELY(wrapper.IsEmpty()))
|
| + return wrapper;
|
| +
|
| + wrapperType->installConditionallyEnabledProperties(wrapper, isolate);
|
| + wrapperType->refObject(toInternalPointer());
|
| + V8DOMWrapper::associateObjectWithWrapperNonTemplate(this, wrapperType, wrapper, isolate);
|
| + return wrapper;
|
| +}
|
| +
|
| } // namespace blink
|
|
|