| 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 1333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1344 static void eventHandlerAttributeAttributeGetterCallback(v8::Local<v8::String> n
ame, const v8::PropertyCallbackInfo<v8::Value>& info) | 1344 static void eventHandlerAttributeAttributeGetterCallback(v8::Local<v8::String> n
ame, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 1345 { | 1345 { |
| 1346 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1346 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1347 TestObjectPythonV8Internal::eventHandlerAttributeAttributeGetter(name, info)
; | 1347 TestObjectPythonV8Internal::eventHandlerAttributeAttributeGetter(name, info)
; |
| 1348 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1348 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1349 } | 1349 } |
| 1350 | 1350 |
| 1351 static void eventHandlerAttributeAttributeSetter(v8::Local<v8::String> name, v8:
:Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1351 static void eventHandlerAttributeAttributeSetter(v8::Local<v8::String> name, v8:
:Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 1352 { | 1352 { |
| 1353 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1353 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1354 if (!jsValue->IsNull() && !jsValue->IsFunction()) | |
| 1355 jsValue = v8::Null(info.GetIsolate()); | |
| 1356 transferHiddenDependency(info.Holder(), imp->eventHandlerAttribute(isolatedW
orldForIsolate(info.GetIsolate())), jsValue, V8TestObjectPython::eventListenerCa
cheIndex, info.GetIsolate()); | 1354 transferHiddenDependency(info.Holder(), imp->eventHandlerAttribute(isolatedW
orldForIsolate(info.GetIsolate())), jsValue, V8TestObjectPython::eventListenerCa
cheIndex, info.GetIsolate()); |
| 1357 imp->setEventHandlerAttribute(V8EventListenerList::getEventListener(jsValue,
true, ListenerFindOrCreate), isolatedWorldForIsolate(info.GetIsolate())); | 1355 imp->setEventHandlerAttribute(V8EventListenerList::getEventListener(jsValue,
true, ListenerFindOrCreate), isolatedWorldForIsolate(info.GetIsolate())); |
| 1358 } | 1356 } |
| 1359 | 1357 |
| 1360 static void eventHandlerAttributeAttributeSetterCallback(v8::Local<v8::String> n
ame, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1358 static void eventHandlerAttributeAttributeSetterCallback(v8::Local<v8::String> n
ame, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 1361 { | 1359 { |
| 1362 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1360 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 1363 TestObjectPythonV8Internal::eventHandlerAttributeAttributeSetter(name, jsVal
ue, info); | 1361 TestObjectPythonV8Internal::eventHandlerAttributeAttributeSetter(name, jsVal
ue, info); |
| 1364 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1362 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1365 } | 1363 } |
| (...skipping 1817 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3183 V8DOMWrapper::associateObjectWithWrapper<V8TestObjectPython>(impl, &info, wr
apper, isolate, WrapperConfiguration::Independent); | 3181 V8DOMWrapper::associateObjectWithWrapper<V8TestObjectPython>(impl, &info, wr
apper, isolate, WrapperConfiguration::Independent); |
| 3184 return wrapper; | 3182 return wrapper; |
| 3185 } | 3183 } |
| 3186 | 3184 |
| 3187 void V8TestObjectPython::derefObject(void* object) | 3185 void V8TestObjectPython::derefObject(void* object) |
| 3188 { | 3186 { |
| 3189 fromInternalPointer(object)->deref(); | 3187 fromInternalPointer(object)->deref(); |
| 3190 } | 3188 } |
| 3191 | 3189 |
| 3192 } // namespace WebCore | 3190 } // namespace WebCore |
| OLD | NEW |