Chromium Code Reviews| 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 bool element0Enabled = false; | |
| 533 RefPtr<Node> element0; | 534 RefPtr<Node> element0; |
| 535 bool element1Enabled = false; | |
| 534 RefPtr<NodeList> element1; | 536 RefPtr<NodeList> element1; |
| 535 collection->getItem(propertyName, element0, element1); | 537 collection->getItem(propertyName, element0Enabled, element0, element1Enabled , element1); |
| 536 if (!!element0) | 538 if (element0Enabled && !!element0) |
|
haraken
2013/05/23 05:56:27
Just to confirm: You added '&& !!element0' just in
| |
| 537 return toV8Fast(element0.release(), info, collection); | 539 return toV8Fast(element0.release(), info, collection); |
| 538 if (!!element1) | 540 if (element1Enabled && !!element1) |
| 539 return toV8Fast(element1.release(), info, collection); | 541 return toV8Fast(element1.release(), info, collection); |
| 540 return v8Undefined(); | 542 return v8Undefined(); |
| 541 } | 543 } |
| 542 | 544 |
| 543 static v8::Persistent<v8::FunctionTemplate> ConfigureV8TestInterfaceTemplate(v8: :Persistent<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType c urrentWorldType) | 545 static v8::Persistent<v8::FunctionTemplate> ConfigureV8TestInterfaceTemplate(v8: :Persistent<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType c urrentWorldType) |
| 544 { | 546 { |
| 545 desc->ReadOnlyPrototype(); | 547 desc->ReadOnlyPrototype(); |
| 546 | 548 |
| 547 v8::Local<v8::Signature> defaultSignature; | 549 v8::Local<v8::Signature> defaultSignature; |
| 548 defaultSignature = V8DOMConfiguration::configureTemplate(desc, "TestInterfac e", v8::Persistent<v8::FunctionTemplate>(), V8TestInterface::internalFieldCount, | 550 defaultSignature = V8DOMConfiguration::configureTemplate(desc, "TestInterfac e", v8::Persistent<v8::FunctionTemplate>(), V8TestInterface::internalFieldCount, |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 653 return wrapper; | 655 return wrapper; |
| 654 } | 656 } |
| 655 void V8TestInterface::derefObject(void* object) | 657 void V8TestInterface::derefObject(void* object) |
| 656 { | 658 { |
| 657 static_cast<TestInterface*>(object)->deref(); | 659 static_cast<TestInterface*>(object)->deref(); |
| 658 } | 660 } |
| 659 | 661 |
| 660 } // namespace WebCore | 662 } // namespace WebCore |
| 661 | 663 |
| 662 #endif // ENABLE(Condition1) || ENABLE(Condition2) | 664 #endif // ENABLE(Condition1) || ENABLE(Condition2) |
| OLD | NEW |