| 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 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 523 v8::Handle<v8::Value> V8TestInterface::namedPropertyGetter(v8::Local<v8::String>
name, const v8::AccessorInfo& info) | 523 v8::Handle<v8::Value> V8TestInterface::namedPropertyGetter(v8::Local<v8::String>
name, const v8::AccessorInfo& info) |
| 524 { | 524 { |
| 525 if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(name).IsEmpty()) | 525 if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(name).IsEmpty()) |
| 526 return v8Undefined(); | 526 return v8Undefined(); |
| 527 if (info.Holder()->HasRealNamedCallbackProperty(name)) | 527 if (info.Holder()->HasRealNamedCallbackProperty(name)) |
| 528 return v8Undefined(); | 528 return v8Undefined(); |
| 529 | 529 |
| 530 ASSERT(V8DOMWrapper::maybeDOMWrapper(info.Holder())); | 530 ASSERT(V8DOMWrapper::maybeDOMWrapper(info.Holder())); |
| 531 TestInterface* collection = toNative(info.Holder()); | 531 TestInterface* collection = toNative(info.Holder()); |
| 532 AtomicString propertyName = toWebCoreAtomicString(name); | 532 AtomicString propertyName = toWebCoreAtomicString(name); |
| 533 RefPtr<Node> elementMember1; | 533 RefPtr<Node> element0; |
| 534 RefPtr<NodeList> elementMember2; | 534 RefPtr<NodeList> element1; |
| 535 collection->getItem(propertyName, elementMember1, elementMember2); | 535 collection->getItem(propertyName, element0, element1); |
| 536 if (!!elementMember1) | 536 if (!!element0) |
| 537 return toV8Fast(elementMember1.release(), info, collection); | 537 return toV8Fast(element0.release(), info, collection); |
| 538 if (!!elementMember2) | 538 if (!!element1) |
| 539 return toV8Fast(elementMember2.release(), info, collection); | 539 return toV8Fast(element1.release(), info, collection); |
| 540 return v8Undefined(); | 540 return v8Undefined(); |
| 541 } | 541 } |
| 542 | 542 |
| 543 static v8::Persistent<v8::FunctionTemplate> ConfigureV8TestInterfaceTemplate(v8:
:Persistent<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType c
urrentWorldType) | 543 static v8::Persistent<v8::FunctionTemplate> ConfigureV8TestInterfaceTemplate(v8:
:Persistent<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType c
urrentWorldType) |
| 544 { | 544 { |
| 545 desc->ReadOnlyPrototype(); | 545 desc->ReadOnlyPrototype(); |
| 546 | 546 |
| 547 v8::Local<v8::Signature> defaultSignature; | 547 v8::Local<v8::Signature> defaultSignature; |
| 548 defaultSignature = V8DOMConfiguration::configureTemplate(desc, "TestInterfac
e", v8::Persistent<v8::FunctionTemplate>(), V8TestInterface::internalFieldCount, | 548 defaultSignature = V8DOMConfiguration::configureTemplate(desc, "TestInterfac
e", v8::Persistent<v8::FunctionTemplate>(), V8TestInterface::internalFieldCount, |
| 549 V8TestInterfaceAttrs, WTF_ARRAY_LENGTH(V8TestInterfaceAttrs), | 549 V8TestInterfaceAttrs, WTF_ARRAY_LENGTH(V8TestInterfaceAttrs), |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 653 return wrapper; | 653 return wrapper; |
| 654 } | 654 } |
| 655 void V8TestInterface::derefObject(void* object) | 655 void V8TestInterface::derefObject(void* object) |
| 656 { | 656 { |
| 657 static_cast<TestInterface*>(object)->deref(); | 657 static_cast<TestInterface*>(object)->deref(); |
| 658 } | 658 } |
| 659 | 659 |
| 660 } // namespace WebCore | 660 } // namespace WebCore |
| 661 | 661 |
| 662 #endif // ENABLE(Condition1) || ENABLE(Condition2) | 662 #endif // ENABLE(Condition1) || ENABLE(Condition2) |
| OLD | NEW |