| 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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 exceptionState.throwIfNeeded(); | 280 exceptionState.throwIfNeeded(); |
| 281 return; | 281 return; |
| 282 } | 282 } |
| 283 options.get("initializedByEventConstructorReadonlyAnyAttribute", initial
izedByEventConstructorReadonlyAnyAttribute); | 283 options.get("initializedByEventConstructorReadonlyAnyAttribute", initial
izedByEventConstructorReadonlyAnyAttribute); |
| 284 if (!initializedByEventConstructorReadonlyAnyAttribute.IsEmpty()) | 284 if (!initializedByEventConstructorReadonlyAnyAttribute.IsEmpty()) |
| 285 setHiddenValue(info.GetIsolate(), info.Holder(), "initializedByEvent
ConstructorReadonlyAnyAttribute", initializedByEventConstructorReadonlyAnyAttrib
ute); | 285 setHiddenValue(info.GetIsolate(), info.Holder(), "initializedByEvent
ConstructorReadonlyAnyAttribute", initializedByEventConstructorReadonlyAnyAttrib
ute); |
| 286 } | 286 } |
| 287 RefPtr<TestInterfaceEventConstructor> event = TestInterfaceEventConstructor:
:create(type, eventInit, exceptionState); | 287 RefPtr<TestInterfaceEventConstructor> event = TestInterfaceEventConstructor:
:create(type, eventInit, exceptionState); |
| 288 if (exceptionState.throwIfNeeded()) | 288 if (exceptionState.throwIfNeeded()) |
| 289 return; | 289 return; |
| 290 if (DOMWrapperWorld::current(info.GetIsolate())->isIsolatedWorld()) { | 290 if (isolatedWorldForIsolate(info.GetIsolate())) { |
| 291 if (!initializedByEventConstructorReadonlyAnyAttribute.IsEmpty()) | 291 if (!initializedByEventConstructorReadonlyAnyAttribute.IsEmpty()) |
| 292 event->setSerializedInitializedByEventConstructorReadonlyAnyAttribut
e(SerializedScriptValue::createAndSwallowExceptions(initializedByEventConstructo
rReadonlyAnyAttribute, info.GetIsolate())); | 292 event->setSerializedInitializedByEventConstructorReadonlyAnyAttribut
e(SerializedScriptValue::createAndSwallowExceptions(initializedByEventConstructo
rReadonlyAnyAttribute, info.GetIsolate())); |
| 293 } | 293 } |
| 294 | 294 |
| 295 v8::Handle<v8::Object> wrapper = info.Holder(); | 295 v8::Handle<v8::Object> wrapper = info.Holder(); |
| 296 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceEventConstructor>(ev
ent.release(), &V8TestInterfaceEventConstructor::wrapperTypeInfo, wrapper, info.
GetIsolate(), WrapperConfiguration::Dependent); | 296 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceEventConstructor>(ev
ent.release(), &V8TestInterfaceEventConstructor::wrapperTypeInfo, wrapper, info.
GetIsolate(), WrapperConfiguration::Dependent); |
| 297 v8SetReturnValue(info, wrapper); | 297 v8SetReturnValue(info, wrapper); |
| 298 } | 298 } |
| 299 | 299 |
| 300 } // namespace TestInterfaceEventConstructorV8Internal | 300 } // namespace TestInterfaceEventConstructorV8Internal |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 432 fromInternalPointer(object)->deref(); | 432 fromInternalPointer(object)->deref(); |
| 433 } | 433 } |
| 434 | 434 |
| 435 template<> | 435 template<> |
| 436 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEventConstructor* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) | 436 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEventConstructor* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) |
| 437 { | 437 { |
| 438 return toV8(impl, creationContext, isolate); | 438 return toV8(impl, creationContext, isolate); |
| 439 } | 439 } |
| 440 | 440 |
| 441 } // namespace WebCore | 441 } // namespace WebCore |
| OLD | NEW |