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

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

Issue 15690020: [binding] Check own property on named property accessor (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: udpated tests Created 7 years, 6 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
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 518 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 529
530 TestInterfaceV8Internal::constructor(args); 530 TestInterfaceV8Internal::constructor(args);
531 } 531 }
532 532
533 v8::Handle<v8::Value> V8TestInterface::namedPropertyGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) 533 v8::Handle<v8::Value> V8TestInterface::namedPropertyGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
534 { 534 {
535 if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(name).IsEmpty()) 535 if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(name).IsEmpty())
536 return v8Undefined(); 536 return v8Undefined();
537 if (info.Holder()->HasRealNamedCallbackProperty(name)) 537 if (info.Holder()->HasRealNamedCallbackProperty(name))
538 return v8Undefined(); 538 return v8Undefined();
539 if (info.Holder()->HasRealNamedProperty(name))
540 return v8Undefined();
539 541
540 ASSERT(V8DOMWrapper::maybeDOMWrapper(info.Holder())); 542 ASSERT(V8DOMWrapper::maybeDOMWrapper(info.Holder()));
541 TestInterface* collection = toNative(info.Holder()); 543 TestInterface* collection = toNative(info.Holder());
542 AtomicString propertyName = toWebCoreAtomicString(name); 544 AtomicString propertyName = toWebCoreAtomicString(name);
543 bool element0Enabled = false; 545 bool element0Enabled = false;
544 RefPtr<Node> element0; 546 RefPtr<Node> element0;
545 bool element1Enabled = false; 547 bool element1Enabled = false;
546 RefPtr<NodeList> element1; 548 RefPtr<NodeList> element1;
547 collection->getItem(propertyName, element0Enabled, element0, element1Enabled , element1); 549 collection->getItem(propertyName, element0Enabled, element0, element1Enabled , element1);
548 if (element0Enabled) 550 if (element0Enabled)
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
665 return wrapper; 667 return wrapper;
666 } 668 }
667 void V8TestInterface::derefObject(void* object) 669 void V8TestInterface::derefObject(void* object)
668 { 670 {
669 static_cast<TestInterface*>(object)->deref(); 671 static_cast<TestInterface*>(object)->deref();
670 } 672 }
671 673
672 } // namespace WebCore 674 } // namespace WebCore
673 675
674 #endif // ENABLE(Condition1) || ENABLE(Condition2) 676 #endif // ENABLE(Condition1) || ENABLE(Condition2)
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestEventTarget.cpp ('k') | Source/bindings/tests/results/V8TestObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698