| Index: Source/core/inspector/InjectedScriptBase.cpp
|
| diff --git a/Source/core/inspector/InjectedScriptBase.cpp b/Source/core/inspector/InjectedScriptBase.cpp
|
| index 837bd385e2fd070b234dd6ac4eb0a19242e289ac..4285b79f70f6479c9968f76b4778fe4e2a180e19 100644
|
| --- a/Source/core/inspector/InjectedScriptBase.cpp
|
| +++ b/Source/core/inspector/InjectedScriptBase.cpp
|
| @@ -142,8 +142,11 @@ ScriptValue InjectedScriptBase::callFunctionWithEvalEnabled(ScriptFunctionCall&
|
| {
|
| ASSERT(!isEmpty());
|
| ExecutionContext* executionContext = m_injectedScriptObject.scriptState()->executionContext();
|
| - TRACE_EVENT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "FunctionCall", "data", InspectorFunctionCallEvent::data(executionContext, 0, name(), 1));
|
| - InspectorInstrumentationCookie cookie = InspectorInstrumentation::willCallFunction(executionContext, DevToolsFunctionInfo(0, name(), 1));
|
| + ScriptState::Scope scope(m_injectedScriptObject.scriptState());
|
| + v8::Handle<v8::Function> functionObj = function.function();
|
| + DevToolsFunctionInfo info(functionObj);
|
| + TRACE_EVENT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "FunctionCall", "data", InspectorFunctionCallEvent::data(executionContext, info.scriptId(), "InjectedScriptSource.js", info.lineNumber()));
|
| + InspectorInstrumentationCookie cookie = InspectorInstrumentation::willCallFunction(executionContext, info);
|
|
|
| ScriptState* scriptState = m_injectedScriptObject.scriptState();
|
| bool evalIsDisabled = false;
|
|
|