diff options
author | Ben Murdoch <benm@google.com> | 2011-05-24 11:24:40 +0100 |
---|---|---|
committer | Ben Murdoch <benm@google.com> | 2011-06-02 09:53:15 +0100 |
commit | 81bc750723a18f21cd17d1b173cd2a4dda9cea6e (patch) | |
tree | 7a9e5ed86ff429fd347a25153107221543909b19 /Source/WebCore/bridge/NP_jsobject.cpp | |
parent | 94088a6d336c1dd80a1e734af51e96abcbb689a7 (diff) | |
download | external_webkit-81bc750723a18f21cd17d1b173cd2a4dda9cea6e.zip external_webkit-81bc750723a18f21cd17d1b173cd2a4dda9cea6e.tar.gz external_webkit-81bc750723a18f21cd17d1b173cd2a4dda9cea6e.tar.bz2 |
Merge WebKit at r80534: Intial merge by Git
Change-Id: Ia7a83357124c9e1cdb1debf55d9661ec0bd09a61
Diffstat (limited to 'Source/WebCore/bridge/NP_jsobject.cpp')
-rw-r--r-- | Source/WebCore/bridge/NP_jsobject.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/Source/WebCore/bridge/NP_jsobject.cpp b/Source/WebCore/bridge/NP_jsobject.cpp index 0780ad7..1aed505 100644 --- a/Source/WebCore/bridge/NP_jsobject.cpp +++ b/Source/WebCore/bridge/NP_jsobject.cpp @@ -189,10 +189,10 @@ bool _NPN_InvokeDefault(NPP, NPObject* o, const NPVariant* args, uint32_t argCou MarkedArgumentBuffer argList; getListFromVariantArgs(exec, args, argCount, rootObject, argList); - ProtectedPtr<JSGlobalObject> globalObject = rootObject->globalObject(); - globalObject->globalData().timeoutChecker.start(); + RefPtr<JSGlobalData> globalData(&exec->globalData()); + globalData->timeoutChecker.start(); JSValue resultV = JSC::call(exec, function, callType, callData, function, argList); - globalObject->globalData().timeoutChecker.stop(); + globalData->timeoutChecker.stop(); // Convert and return the result of the function call. convertValueToNPVariant(exec, resultV, result); @@ -239,10 +239,10 @@ bool _NPN_Invoke(NPP npp, NPObject* o, NPIdentifier methodName, const NPVariant* // Call the function object. MarkedArgumentBuffer argList; getListFromVariantArgs(exec, args, argCount, rootObject, argList); - ProtectedPtr<JSGlobalObject> globalObject = rootObject->globalObject(); - globalObject->globalData().timeoutChecker.start(); + RefPtr<JSGlobalData> globalData(&exec->globalData()); + globalData->timeoutChecker.start(); JSValue resultV = JSC::call(exec, function, callType, callData, obj->imp, argList); - globalObject->globalData().timeoutChecker.stop(); + globalData->timeoutChecker.stop(); // Convert and return the result of the function call. convertValueToNPVariant(exec, resultV, result); @@ -273,10 +273,10 @@ bool _NPN_Evaluate(NPP instance, NPObject* o, NPString* s, NPVariant* variant) ExecState* exec = rootObject->globalObject()->globalExec(); JSLock lock(SilenceAssertionsOnly); String scriptString = convertNPStringToUTF16(s); - ProtectedPtr<JSGlobalObject> globalObject = rootObject->globalObject(); - globalObject->globalData().timeoutChecker.start(); - Completion completion = JSC::evaluate(globalObject->globalExec(), globalObject->globalScopeChain(), makeSource(scriptString), JSC::JSValue()); - globalObject->globalData().timeoutChecker.stop(); + RefPtr<JSGlobalData> globalData(&exec->globalData()); + globalData->timeoutChecker.start(); + Completion completion = JSC::evaluate(rootObject->globalObject()->globalExec(), rootObject->globalObject()->globalScopeChain(), makeSource(scriptString), JSC::JSValue()); + globalData->timeoutChecker.stop(); ComplType type = completion.complType(); JSValue result; @@ -513,10 +513,10 @@ bool _NPN_Construct(NPP, NPObject* o, const NPVariant* args, uint32_t argCount, MarkedArgumentBuffer argList; getListFromVariantArgs(exec, args, argCount, rootObject, argList); - ProtectedPtr<JSGlobalObject> globalObject = rootObject->globalObject(); - globalObject->globalData().timeoutChecker.start(); + RefPtr<JSGlobalData> globalData(&exec->globalData()); + globalData->timeoutChecker.start(); JSValue resultV = JSC::construct(exec, constructor, constructType, constructData, argList); - globalObject->globalData().timeoutChecker.stop(); + globalData->timeoutChecker.stop(); // Convert and return the result. convertValueToNPVariant(exec, resultV, result); |