| 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 | 129 |
| 130 bool V8TestMediaQueryListListener::HasInstanceInAnyWorld(v8::Handle<v8::Value> v
alue, v8::Isolate* isolate) | 130 bool V8TestMediaQueryListListener::HasInstanceInAnyWorld(v8::Handle<v8::Value> v
alue, v8::Isolate* isolate) |
| 131 { | 131 { |
| 132 return V8PerIsolateData::from(isolate)->hasInstance(&info, value, MainWorld) | 132 return V8PerIsolateData::from(isolate)->hasInstance(&info, value, MainWorld) |
| 133 || V8PerIsolateData::from(isolate)->hasInstance(&info, value, IsolatedWo
rld) | 133 || V8PerIsolateData::from(isolate)->hasInstance(&info, value, IsolatedWo
rld) |
| 134 || V8PerIsolateData::from(isolate)->hasInstance(&info, value, WorkerWorl
d); | 134 || V8PerIsolateData::from(isolate)->hasInstance(&info, value, WorkerWorl
d); |
| 135 } | 135 } |
| 136 | 136 |
| 137 v8::Handle<v8::Object> V8TestMediaQueryListListener::createWrapper(PassRefPtr<Te
stMediaQueryListListener> impl, v8::Handle<v8::Object> creationContext, v8::Isol
ate* isolate) | 137 v8::Handle<v8::Object> V8TestMediaQueryListListener::createWrapper(PassRefPtr<Te
stMediaQueryListListener> impl, v8::Handle<v8::Object> creationContext, v8::Isol
ate* isolate) |
| 138 { | 138 { |
| 139 ASSERT(impl.get()); | 139 ASSERT(impl); |
| 140 ASSERT(!DOMDataStore::containsWrapper<V8TestMediaQueryListListener>(impl.get
(), isolate)); | 140 ASSERT(!DOMDataStore::containsWrapper<V8TestMediaQueryListListener>(impl.get
(), isolate)); |
| 141 if (ScriptWrappable::wrapperCanBeStoredInObject(impl.get())) { | 141 if (ScriptWrappable::wrapperCanBeStoredInObject(impl.get())) { |
| 142 const WrapperTypeInfo* actualInfo = ScriptWrappable::getTypeInfoFromObje
ct(impl.get()); | 142 const WrapperTypeInfo* actualInfo = ScriptWrappable::getTypeInfoFromObje
ct(impl.get()); |
| 143 // Might be a XXXConstructor::info instead of an XXX::info. These will b
oth have | 143 // Might be a XXXConstructor::info instead of an XXX::info. These will b
oth have |
| 144 // the same object de-ref functions, though, so use that as the basis of
the check. | 144 // the same object de-ref functions, though, so use that as the basis of
the check. |
| 145 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(actualInfo->derefObjectFunction
== info.derefObjectFunction); | 145 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(actualInfo->derefObjectFunction
== info.derefObjectFunction); |
| 146 } | 146 } |
| 147 | 147 |
| 148 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext
, &info, toInternalPointer(impl.get()), isolate); | 148 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext
, &info, toInternalPointer(impl.get()), isolate); |
| 149 if (UNLIKELY(wrapper.IsEmpty())) | 149 if (UNLIKELY(wrapper.IsEmpty())) |
| 150 return wrapper; | 150 return wrapper; |
| 151 | 151 |
| 152 installPerContextProperties(wrapper, impl.get(), isolate); | 152 installPerContextProperties(wrapper, impl.get(), isolate); |
| 153 V8DOMWrapper::associateObjectWithWrapper<V8TestMediaQueryListListener>(impl,
&info, wrapper, isolate, WrapperConfiguration::Independent); | 153 V8DOMWrapper::associateObjectWithWrapper<V8TestMediaQueryListListener>(impl,
&info, wrapper, isolate, WrapperConfiguration::Independent); |
| 154 return wrapper; | 154 return wrapper; |
| 155 } | 155 } |
| 156 | 156 |
| 157 void V8TestMediaQueryListListener::derefObject(void* object) | 157 void V8TestMediaQueryListListener::derefObject(void* object) |
| 158 { | 158 { |
| 159 fromInternalPointer(object)->deref(); | 159 fromInternalPointer(object)->deref(); |
| 160 } | 160 } |
| 161 | 161 |
| 162 } // namespace WebCore | 162 } // namespace WebCore |
| OLD | NEW |