| Index: Source/bindings/templates/methods.cpp
|
| diff --git a/Source/bindings/templates/methods.cpp b/Source/bindings/templates/methods.cpp
|
| index 9affae262495d67d4fd6fdb460ec011387010573..152761607b0b0b72a06b2e376daa60a0429d02ee 100644
|
| --- a/Source/bindings/templates/methods.cpp
|
| +++ b/Source/bindings/templates/methods.cpp
|
| @@ -400,8 +400,13 @@ static void {{method.name}}MethodCallback{{world_suffix}}(const v8::FunctionCall
|
| {% endif %}
|
| {% endif %}{# not method.overloads #}
|
| {% if world_suffix in method.activity_logging_world_list %}
|
| - V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->GetCurrentContext());
|
| + ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentContext());
|
| + V8PerContextData* contextData = scriptState->perContextData();
|
| + {% if method.activity_logging_world_check %}
|
| + if (contextData && contextData->activityLogger() && scriptState->world().isIsolatedWorld())
|
| + {% else %}
|
| if (contextData && contextData->activityLogger()) {
|
| + {% endif %}
|
| {# FIXME: replace toVectorOfArguments with toNativeArguments(info, 0)
|
| and delete toVectorOfArguments #}
|
| Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle<v8::Value> >(info, 0);
|
|
|