diff options
author | Ben Murdoch <benm@google.com> | 2009-08-11 17:01:47 +0100 |
---|---|---|
committer | Ben Murdoch <benm@google.com> | 2009-08-11 18:21:02 +0100 |
commit | 0bf48ef3be53ddaa52bbead65dfd75bf90e7a2b5 (patch) | |
tree | 2943df35f62d885c89d01063cc528dd73b480fea /WebCore/bridge/objc/objc_runtime.mm | |
parent | 7e7a70bfa49a1122b2597a1e6367d89eb4035eca (diff) | |
download | external_webkit-0bf48ef3be53ddaa52bbead65dfd75bf90e7a2b5.zip external_webkit-0bf48ef3be53ddaa52bbead65dfd75bf90e7a2b5.tar.gz external_webkit-0bf48ef3be53ddaa52bbead65dfd75bf90e7a2b5.tar.bz2 |
Merge in WebKit r47029.
Diffstat (limited to 'WebCore/bridge/objc/objc_runtime.mm')
-rw-r--r-- | WebCore/bridge/objc/objc_runtime.mm | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/WebCore/bridge/objc/objc_runtime.mm b/WebCore/bridge/objc/objc_runtime.mm index 4169517..2d69c1c 100644 --- a/WebCore/bridge/objc/objc_runtime.mm +++ b/WebCore/bridge/objc/objc_runtime.mm @@ -96,15 +96,15 @@ JSValue ObjcField::valueFromInstance(ExecState* exec, const Instance* instance) id targetObject = (static_cast<const ObjcInstance*>(instance))->getObject(); - JSLock::DropAllLocks dropAllLocks(false); // Can't put this inside the @try scope because it unwinds incorrectly. + JSLock::DropAllLocks dropAllLocks(SilenceAssertionsOnly); // Can't put this inside the @try scope because it unwinds incorrectly. @try { if (id objcValue = [targetObject valueForKey:(NSString *)_name.get()]) result = convertObjcValueToValue(exec, &objcValue, ObjcObjectType, instance->rootObject()); } @catch(NSException* localException) { - JSLock::lock(false); + JSLock::lock(SilenceAssertionsOnly); throwError(exec, GeneralError, [localException reason]); - JSLock::unlock(false); + JSLock::unlock(SilenceAssertionsOnly); } // Work around problem in some versions of GCC where result gets marked volatile and @@ -125,14 +125,14 @@ void ObjcField::setValueToInstance(ExecState* exec, const Instance* instance, JS id targetObject = (static_cast<const ObjcInstance*>(instance))->getObject(); id value = convertValueToObjcObject(exec, aValue); - JSLock::DropAllLocks dropAllLocks(false); // Can't put this inside the @try scope because it unwinds incorrectly. + JSLock::DropAllLocks dropAllLocks(SilenceAssertionsOnly); // Can't put this inside the @try scope because it unwinds incorrectly. @try { [targetObject setValue:value forKey:(NSString *)_name.get()]; } @catch(NSException* localException) { - JSLock::lock(false); + JSLock::lock(SilenceAssertionsOnly); throwError(exec, GeneralError, [localException reason]); - JSLock::unlock(false); + JSLock::unlock(SilenceAssertionsOnly); } } @@ -189,7 +189,8 @@ unsigned int ObjcArray::getLength() const const ClassInfo ObjcFallbackObjectImp::s_info = { "ObjcFallbackObject", 0, 0, 0 }; ObjcFallbackObjectImp::ObjcFallbackObjectImp(ExecState* exec, ObjcInstance* i, const Identifier& propertyName) - : JSObject(getDOMStructure<ObjcFallbackObjectImp>(exec)) + // FIXME: deprecatedGetDOMStructure uses the prototype off of the wrong global object + : JSObject(deprecatedGetDOMStructure<ObjcFallbackObjectImp>(exec)) , _instance(i) , _item(propertyName) { |