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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 | 192 |
193 v8::Handle<v8::Value> V8TestEventTarget::namedPropertySetter(v8::Local<v8::Strin
g> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info) | 193 v8::Handle<v8::Value> V8TestEventTarget::namedPropertySetter(v8::Local<v8::Strin
g> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info) |
194 { | 194 { |
195 if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(name).IsEmpty()) | 195 if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(name).IsEmpty()) |
196 return v8Undefined(); | 196 return v8Undefined(); |
197 if (info.Holder()->HasRealNamedCallbackProperty(name)) | 197 if (info.Holder()->HasRealNamedCallbackProperty(name)) |
198 return v8Undefined(); | 198 return v8Undefined(); |
199 TestEventTarget* collection = toNative(info.Holder()); | 199 TestEventTarget* collection = toNative(info.Holder()); |
200 V8TRYCATCH_FOR_V8STRINGRESOURCE(V8StringResource<>, propertyName, name); | 200 V8TRYCATCH_FOR_V8STRINGRESOURCE(V8StringResource<>, propertyName, name); |
201 V8TRYCATCH_FOR_V8STRINGRESOURCE(V8StringResource<>, propertyValue, value); | 201 V8TRYCATCH_FOR_V8STRINGRESOURCE(V8StringResource<>, propertyValue, value); |
202 bool result = collection->anonymousNamedSetter(propertyName, propertyValue); | 202 bool result; |
| 203 if (value->IsUndefined()) |
| 204 result = collection->anonymousNamedSetterUndefined(propertyName); |
| 205 else |
| 206 result = collection->anonymousNamedSetter(propertyName, propertyValue); |
203 if (!result) | 207 if (!result) |
204 return v8Undefined(); | 208 return v8Undefined(); |
205 return value; | 209 return value; |
206 } | 210 } |
207 | 211 |
208 v8::Handle<v8::Boolean> V8TestEventTarget::namedPropertyDeleter(v8::Local<v8::St
ring> name, const v8::AccessorInfo& info) | 212 v8::Handle<v8::Boolean> V8TestEventTarget::namedPropertyDeleter(v8::Local<v8::St
ring> name, const v8::AccessorInfo& info) |
209 { | 213 { |
210 TestEventTarget* collection = toNative(info.Holder()); | 214 TestEventTarget* collection = toNative(info.Holder()); |
211 AtomicString propertyName = toWebCoreAtomicString(name); | 215 AtomicString propertyName = toWebCoreAtomicString(name); |
212 bool result = collection->anonymousNamedDeleter(propertyName); | 216 bool result = collection->anonymousNamedDeleter(propertyName); |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 installPerContextProperties(wrapper, impl.get(), isolate); | 289 installPerContextProperties(wrapper, impl.get(), isolate); |
286 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, Wrap
perConfiguration::Independent); | 290 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, Wrap
perConfiguration::Independent); |
287 return wrapper; | 291 return wrapper; |
288 } | 292 } |
289 void V8TestEventTarget::derefObject(void* object) | 293 void V8TestEventTarget::derefObject(void* object) |
290 { | 294 { |
291 static_cast<TestEventTarget*>(object)->deref(); | 295 static_cast<TestEventTarget*>(object)->deref(); |
292 } | 296 } |
293 | 297 |
294 } // namespace WebCore | 298 } // namespace WebCore |
OLD | NEW |