OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
614 v8::Handle<v8::Object> wrapper = info.Holder(); | 614 v8::Handle<v8::Object> wrapper = info.Holder(); |
615 if (exceptionState.throwIfNeeded()) | 615 if (exceptionState.throwIfNeeded()) |
616 return; | 616 return; |
617 | 617 |
618 V8DOMWrapper::associateObjectWithWrapper<V8TestInterface>(impl.release(), &V
8TestInterface::wrapperTypeInfo, wrapper, info.GetIsolate(), WrapperConfiguratio
n::Dependent); | 618 V8DOMWrapper::associateObjectWithWrapper<V8TestInterface>(impl.release(), &V
8TestInterface::wrapperTypeInfo, wrapper, info.GetIsolate(), WrapperConfiguratio
n::Dependent); |
619 v8SetReturnValue(info, wrapper); | 619 v8SetReturnValue(info, wrapper); |
620 } | 620 } |
621 | 621 |
622 static void namedPropertyGetter(v8::Local<v8::String> name, const v8::PropertyCa
llbackInfo<v8::Value>& info) | 622 static void namedPropertyGetter(v8::Local<v8::String> name, const v8::PropertyCa
llbackInfo<v8::Value>& info) |
623 { | 623 { |
| 624 if (info.Holder()->HasRealNamedProperty(name)) |
| 625 return; |
624 if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(name).IsEmpty()) | 626 if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(name).IsEmpty()) |
625 return; | 627 return; |
626 if (info.Holder()->HasRealNamedCallbackProperty(name)) | |
627 return; | |
628 if (info.Holder()->HasRealNamedProperty(name)) | |
629 return; | |
630 | 628 |
631 TestInterface* collection = V8TestInterface::toNative(info.Holder()); | 629 TestInterface* collection = V8TestInterface::toNative(info.Holder()); |
632 AtomicString propertyName = toCoreAtomicString(name); | 630 AtomicString propertyName = toCoreAtomicString(name); |
633 bool element0Enabled = false; | 631 bool element0Enabled = false; |
634 RefPtr<Node> element0; | 632 RefPtr<Node> element0; |
635 bool element1Enabled = false; | 633 bool element1Enabled = false; |
636 RefPtr<NodeList> element1; | 634 RefPtr<NodeList> element1; |
637 collection->getItem(propertyName, element0Enabled, element0, element1Enabled
, element1); | 635 collection->getItem(propertyName, element0Enabled, element0, element1Enabled
, element1); |
638 if (!element0Enabled && !element1Enabled) | 636 if (!element0Enabled && !element1Enabled) |
639 return; | 637 return; |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
886 } | 884 } |
887 | 885 |
888 template<> | 886 template<> |
889 v8::Handle<v8::Value> toV8NoInline(TestInterface* impl, v8::Handle<v8::Object> c
reationContext, v8::Isolate* isolate) | 887 v8::Handle<v8::Value> toV8NoInline(TestInterface* impl, v8::Handle<v8::Object> c
reationContext, v8::Isolate* isolate) |
890 { | 888 { |
891 return toV8(impl, creationContext, isolate); | 889 return toV8(impl, creationContext, isolate); |
892 } | 890 } |
893 | 891 |
894 } // namespace WebCore | 892 } // namespace WebCore |
895 #endif // ENABLE(Condition1) || ENABLE(Condition2) | 893 #endif // ENABLE(Condition1) || ENABLE(Condition2) |
OLD | NEW |