| 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 } | 173 } |
| 174 return v8Boolean(result); | 174 return v8Boolean(result); |
| 175 } | 175 } |
| 176 | 176 |
| 177 v8::Handle<v8::Value> V8TestEventTarget::namedPropertyGetter(v8::Local<v8::Strin
g> name, const v8::AccessorInfo& info) | 177 v8::Handle<v8::Value> V8TestEventTarget::namedPropertyGetter(v8::Local<v8::Strin
g> name, const v8::AccessorInfo& info) |
| 178 { | 178 { |
| 179 if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(name).IsEmpty()) | 179 if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(name).IsEmpty()) |
| 180 return v8Undefined(); | 180 return v8Undefined(); |
| 181 if (info.Holder()->HasRealNamedCallbackProperty(name)) | 181 if (info.Holder()->HasRealNamedCallbackProperty(name)) |
| 182 return v8Undefined(); | 182 return v8Undefined(); |
| 183 if (info.Holder()->HasRealNamedProperty(name)) |
| 184 return v8Undefined(); |
| 183 | 185 |
| 184 ASSERT(V8DOMWrapper::maybeDOMWrapper(info.Holder())); | 186 ASSERT(V8DOMWrapper::maybeDOMWrapper(info.Holder())); |
| 185 TestEventTarget* collection = toNative(info.Holder()); | 187 TestEventTarget* collection = toNative(info.Holder()); |
| 186 AtomicString propertyName = toWebCoreAtomicString(name); | 188 AtomicString propertyName = toWebCoreAtomicString(name); |
| 187 RefPtr<Node> element = collection->namedItem(propertyName); | 189 RefPtr<Node> element = collection->namedItem(propertyName); |
| 188 if (!element) | 190 if (!element) |
| 189 return v8Undefined(); | 191 return v8Undefined(); |
| 190 return toV8Fast(element.release(), info, collection); | 192 return toV8Fast(element.release(), info, collection); |
| 191 } | 193 } |
| 192 | 194 |
| 193 v8::Handle<v8::Value> V8TestEventTarget::namedPropertySetter(v8::Local<v8::Strin
g> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info) | 195 v8::Handle<v8::Value> V8TestEventTarget::namedPropertySetter(v8::Local<v8::Strin
g> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info) |
| 194 { | 196 { |
| 195 if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(name).IsEmpty()) | 197 if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(name).IsEmpty()) |
| 196 return v8Undefined(); | 198 return v8Undefined(); |
| 197 if (info.Holder()->HasRealNamedCallbackProperty(name)) | 199 if (info.Holder()->HasRealNamedCallbackProperty(name)) |
| 198 return v8Undefined(); | 200 return v8Undefined(); |
| 201 if (info.Holder()->HasRealNamedProperty(name)) |
| 202 return v8Undefined(); |
| 199 TestEventTarget* collection = toNative(info.Holder()); | 203 TestEventTarget* collection = toNative(info.Holder()); |
| 200 V8TRYCATCH_FOR_V8STRINGRESOURCE(V8StringResource<>, propertyName, name); | 204 V8TRYCATCH_FOR_V8STRINGRESOURCE(V8StringResource<>, propertyName, name); |
| 201 V8TRYCATCH_FOR_V8STRINGRESOURCE(V8StringResource<>, propertyValue, value); | 205 V8TRYCATCH_FOR_V8STRINGRESOURCE(V8StringResource<>, propertyValue, value); |
| 202 bool result; | 206 bool result; |
| 203 if (value->IsUndefined()) | 207 if (value->IsUndefined()) |
| 204 result = collection->anonymousNamedSetterUndefined(propertyName); | 208 result = collection->anonymousNamedSetterUndefined(propertyName); |
| 205 else | 209 else |
| 206 result = collection->anonymousNamedSetter(propertyName, propertyValue); | 210 result = collection->anonymousNamedSetter(propertyName, propertyValue); |
| 207 if (!result) | 211 if (!result) |
| 208 return v8Undefined(); | 212 return v8Undefined(); |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 installPerContextProperties(wrapper, impl.get(), isolate); | 293 installPerContextProperties(wrapper, impl.get(), isolate); |
| 290 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, Wrap
perConfiguration::Independent); | 294 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, Wrap
perConfiguration::Independent); |
| 291 return wrapper; | 295 return wrapper; |
| 292 } | 296 } |
| 293 void V8TestEventTarget::derefObject(void* object) | 297 void V8TestEventTarget::derefObject(void* object) |
| 294 { | 298 { |
| 295 static_cast<TestEventTarget*>(object)->deref(); | 299 static_cast<TestEventTarget*>(object)->deref(); |
| 296 } | 300 } |
| 297 | 301 |
| 298 } // namespace WebCore | 302 } // namespace WebCore |
| OLD | NEW |