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

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

Issue 17063016: Remove leak of objects between isolated worlds on custom events. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Minor rebase nits. Created 7 years, 5 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
« no previous file with comments | « Source/bindings/scripts/CodeGeneratorV8.pm ('k') | Source/bindings/v8/Dictionary.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 if (args.Length() >= 2) { 98 if (args.Length() >= 2) {
99 V8TRYCATCH_VOID(Dictionary, options, Dictionary(args[1], args.GetIsolate ())); 99 V8TRYCATCH_VOID(Dictionary, options, Dictionary(args[1], args.GetIsolate ()));
100 if (!fillTestEventConstructorInit(eventInit, options)) 100 if (!fillTestEventConstructorInit(eventInit, options))
101 return; 101 return;
102 } 102 }
103 103
104 RefPtr<TestEventConstructor> event = TestEventConstructor::create(type, even tInit); 104 RefPtr<TestEventConstructor> event = TestEventConstructor::create(type, even tInit);
105 105
106 v8::Handle<v8::Object> wrapper = args.Holder(); 106 v8::Handle<v8::Object> wrapper = args.Holder();
107 V8DOMWrapper::associateObjectWithWrapper(event.release(), &V8TestEventConstr uctor::info, wrapper, args.GetIsolate(), WrapperConfiguration::Dependent); 107 V8DOMWrapper::associateObjectWithWrapper(event.release(), &V8TestEventConstr uctor::info, wrapper, args.GetIsolate(), WrapperConfiguration::Dependent);
108 args.GetReturnValue().Set(wrapper); 108 v8SetReturnValue(args, wrapper);
109 } 109 }
110 } // namespace TestEventConstructorV8Internal 110 } // namespace TestEventConstructorV8Internal
111 111
112 static const V8DOMConfiguration::BatchedAttribute V8TestEventConstructorAttrs[] = { 112 static const V8DOMConfiguration::BatchedAttribute V8TestEventConstructorAttrs[] = {
113 // Attribute 'attr1' 113 // Attribute 'attr1'
114 {"attr1", TestEventConstructorV8Internal::attr1AttrGetterCallback, 0, 0, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pr opertyAttribute>(v8::None), 0 /* on instance */}, 114 {"attr1", TestEventConstructorV8Internal::attr1AttrGetterCallback, 0, 0, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pr opertyAttribute>(v8::None), 0 /* on instance */},
115 // Attribute 'attr2' 115 // Attribute 'attr2'
116 {"attr2", TestEventConstructorV8Internal::attr2AttrGetterCallback, 0, 0, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pr opertyAttribute>(v8::None), 0 /* on instance */}, 116 {"attr2", TestEventConstructorV8Internal::attr2AttrGetterCallback, 0, 0, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pr opertyAttribute>(v8::None), 0 /* on instance */},
117 }; 117 };
118 118
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 installPerContextProperties(wrapper, impl.get(), isolate); 194 installPerContextProperties(wrapper, impl.get(), isolate);
195 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, Wrap perConfiguration::Independent); 195 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, Wrap perConfiguration::Independent);
196 return wrapper; 196 return wrapper;
197 } 197 }
198 void V8TestEventConstructor::derefObject(void* object) 198 void V8TestEventConstructor::derefObject(void* object)
199 { 199 {
200 static_cast<TestEventConstructor*>(object)->deref(); 200 static_cast<TestEventConstructor*>(object)->deref();
201 } 201 }
202 202
203 } // namespace WebCore 203 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/scripts/CodeGeneratorV8.pm ('k') | Source/bindings/v8/Dictionary.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698