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 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
472 static void eventHandlerAttrAttrGetterCallback(v8::Local<v8::String> name, const
v8::PropertyCallbackInfo<v8::Value>& info) | 472 static void eventHandlerAttrAttrGetterCallback(v8::Local<v8::String> name, const
v8::PropertyCallbackInfo<v8::Value>& info) |
473 { | 473 { |
474 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 474 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
475 TestObjV8Internal::eventHandlerAttrAttrGetter(name, info); | 475 TestObjV8Internal::eventHandlerAttrAttrGetter(name, info); |
476 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 476 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
477 } | 477 } |
478 | 478 |
479 static void eventHandlerAttrAttrSetter(v8::Local<v8::String> name, v8::Local<v8:
:Value> value, const v8::PropertyCallbackInfo<void>& info) | 479 static void eventHandlerAttrAttrSetter(v8::Local<v8::String> name, v8::Local<v8:
:Value> value, const v8::PropertyCallbackInfo<void>& info) |
480 { | 480 { |
481 TestObj* imp = V8TestObject::toNative(info.Holder()); | 481 TestObj* imp = V8TestObject::toNative(info.Holder()); |
| 482 if (!value->IsNull() && !value->IsFunction()) |
| 483 value = v8::Null(info.GetIsolate()); |
482 transferHiddenDependency(info.Holder(), imp->eventHandlerAttr(isolatedWorldF
orIsolate(info.GetIsolate())), value, V8TestObject::eventListenerCacheIndex, inf
o.GetIsolate()); | 484 transferHiddenDependency(info.Holder(), imp->eventHandlerAttr(isolatedWorldF
orIsolate(info.GetIsolate())), value, V8TestObject::eventListenerCacheIndex, inf
o.GetIsolate()); |
483 imp->setEventHandlerAttr(V8EventListenerList::getEventListener(value, true,
ListenerFindOrCreate), isolatedWorldForIsolate(info.GetIsolate())); | 485 imp->setEventHandlerAttr(V8EventListenerList::getEventListener(value, true,
ListenerFindOrCreate), isolatedWorldForIsolate(info.GetIsolate())); |
484 return; | 486 return; |
485 } | 487 } |
486 | 488 |
487 static void eventHandlerAttrAttrSetterCallback(v8::Local<v8::String> name, v8::L
ocal<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) | 489 static void eventHandlerAttrAttrSetterCallback(v8::Local<v8::String> name, v8::L
ocal<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) |
488 { | 490 { |
489 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 491 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
490 TestObjV8Internal::eventHandlerAttrAttrSetter(name, value, info); | 492 TestObjV8Internal::eventHandlerAttrAttrSetter(name, value, info); |
491 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 493 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
(...skipping 5297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5789 installPerContextProperties(wrapper, impl.get(), isolate); | 5791 installPerContextProperties(wrapper, impl.get(), isolate); |
5790 V8DOMWrapper::associateObjectWithWrapper<V8TestObject>(impl, &info, wrapper,
isolate, WrapperConfiguration::Independent); | 5792 V8DOMWrapper::associateObjectWithWrapper<V8TestObject>(impl, &info, wrapper,
isolate, WrapperConfiguration::Independent); |
5791 return wrapper; | 5793 return wrapper; |
5792 } | 5794 } |
5793 void V8TestObject::derefObject(void* object) | 5795 void V8TestObject::derefObject(void* object) |
5794 { | 5796 { |
5795 fromInternalPointer(object)->deref(); | 5797 fromInternalPointer(object)->deref(); |
5796 } | 5798 } |
5797 | 5799 |
5798 } // namespace WebCore | 5800 } // namespace WebCore |
OLD | NEW |