| OLD | NEW |
| 1 /* | 1 /* |
| 2 This file is part of the Blink open source project. | 2 This file is part of the Blink open source project. |
| 3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! | 3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! |
| 4 | 4 |
| 5 This library is free software; you can redistribute it and/or | 5 This library is free software; you can redistribute it and/or |
| 6 modify it under the terms of the GNU Library General Public | 6 modify it under the terms of the GNU Library General Public |
| 7 License as published by the Free Software Foundation; either | 7 License as published by the Free Software Foundation; either |
| 8 version 2 of the License, or (at your option) any later version. | 8 version 2 of the License, or (at your option) any later version. |
| 9 | 9 |
| 10 This library is distributed in the hope that it will be useful, | 10 This library is distributed in the hope that it will be useful, |
| (...skipping 1334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1345 static void eventHandlerAttributeAttributeGetterCallback(v8::Local<v8::String> n
ame, const v8::PropertyCallbackInfo<v8::Value>& info) | 1345 static void eventHandlerAttributeAttributeGetterCallback(v8::Local<v8::String> n
ame, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 1346 { | 1346 { |
| 1347 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1347 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1348 TestObjectPythonV8Internal::eventHandlerAttributeAttributeGetter(name, info)
; | 1348 TestObjectPythonV8Internal::eventHandlerAttributeAttributeGetter(name, info)
; |
| 1349 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1349 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1350 } | 1350 } |
| 1351 | 1351 |
| 1352 static void eventHandlerAttributeAttributeSetter(v8::Local<v8::String> name, v8:
:Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1352 static void eventHandlerAttributeAttributeSetter(v8::Local<v8::String> name, v8:
:Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 1353 { | 1353 { |
| 1354 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1354 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1355 if (!jsValue->IsNull() && !jsValue->IsFunction()) | |
| 1356 jsValue = v8::Null(info.GetIsolate()); | |
| 1357 transferHiddenDependency(info.Holder(), imp->eventHandlerAttribute(isolatedW
orldForIsolate(info.GetIsolate())), jsValue, V8TestObjectPython::eventListenerCa
cheIndex, info.GetIsolate()); | 1355 transferHiddenDependency(info.Holder(), imp->eventHandlerAttribute(isolatedW
orldForIsolate(info.GetIsolate())), jsValue, V8TestObjectPython::eventListenerCa
cheIndex, info.GetIsolate()); |
| 1358 imp->setEventHandlerAttribute(V8EventListenerList::getEventListener(jsValue,
true, ListenerFindOrCreate), isolatedWorldForIsolate(info.GetIsolate())); | 1356 imp->setEventHandlerAttribute(V8EventListenerList::getEventListener(jsValue,
true, ListenerFindOrCreate), isolatedWorldForIsolate(info.GetIsolate())); |
| 1359 } | 1357 } |
| 1360 | 1358 |
| 1361 static void eventHandlerAttributeAttributeSetterCallback(v8::Local<v8::String> n
ame, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1359 static void eventHandlerAttributeAttributeSetterCallback(v8::Local<v8::String> n
ame, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 1362 { | 1360 { |
| 1363 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1361 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 1364 TestObjectPythonV8Internal::eventHandlerAttributeAttributeSetter(name, jsVal
ue, info); | 1362 TestObjectPythonV8Internal::eventHandlerAttributeAttributeSetter(name, jsVal
ue, info); |
| 1365 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1363 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1366 } | 1364 } |
| (...skipping 2009 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3376 V8DOMWrapper::associateObjectWithWrapper<V8TestObjectPython>(impl, &info, wr
apper, isolate, WrapperConfiguration::Independent); | 3374 V8DOMWrapper::associateObjectWithWrapper<V8TestObjectPython>(impl, &info, wr
apper, isolate, WrapperConfiguration::Independent); |
| 3377 return wrapper; | 3375 return wrapper; |
| 3378 } | 3376 } |
| 3379 | 3377 |
| 3380 void V8TestObjectPython::derefObject(void* object) | 3378 void V8TestObjectPython::derefObject(void* object) |
| 3381 { | 3379 { |
| 3382 fromInternalPointer(object)->deref(); | 3380 fromInternalPointer(object)->deref(); |
| 3383 } | 3381 } |
| 3384 | 3382 |
| 3385 } // namespace WebCore | 3383 } // namespace WebCore |
| OLD | NEW |