Index: Source/bindings/tests/results/V8TestSpecialOperations.cpp |
diff --git a/Source/bindings/tests/results/V8TestSpecialOperations.cpp b/Source/bindings/tests/results/V8TestSpecialOperations.cpp |
index 339356a66537b88a30e647502088bd9920bddce1..84846d3ee74462ea13422dd9d8a9a18c1fb40460 100644 |
--- a/Source/bindings/tests/results/V8TestSpecialOperations.cpp |
+++ b/Source/bindings/tests/results/V8TestSpecialOperations.cpp |
@@ -194,16 +194,7 @@ static void configureV8TestSpecialOperationsTemplate(v8::Handle<v8::FunctionTemp |
v8::Handle<v8::FunctionTemplate> V8TestSpecialOperations::domTemplate(v8::Isolate* isolate) |
{ |
- V8PerIsolateData* data = V8PerIsolateData::from(isolate); |
- v8::Local<v8::FunctionTemplate> result = data->existingDOMTemplate(const_cast<WrapperTypeInfo*>(&wrapperTypeInfo)); |
- if (!result.IsEmpty()) |
- return result; |
- |
- TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "BuildDOMTemplate"); |
- result = v8::FunctionTemplate::New(isolate, V8ObjectConstructor::isValidConstructorMode); |
- configureV8TestSpecialOperationsTemplate(result, isolate); |
- data->setDOMTemplate(const_cast<WrapperTypeInfo*>(&wrapperTypeInfo), result); |
- return result; |
+ return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeInfo*>(&wrapperTypeInfo), configureV8TestSpecialOperationsTemplate); |
} |
bool V8TestSpecialOperations::hasInstance(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) |