Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(155)

Side by Side Diff: Source/bindings/tests/results/V8TestObject.cpp

Issue 22687002: Treat non-callable input as null for EventHandler attributes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix nit Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/bindings/scripts/deprecated_code_generator_v8.pm ('k') | Source/bindings/v8/V8EventListener.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698