diff options
Diffstat (limited to 'webkit/pending')
-rw-r--r-- | webkit/pending/ScriptController.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/webkit/pending/ScriptController.h b/webkit/pending/ScriptController.h index ecfe418..9b90e75 100644 --- a/webkit/pending/ScriptController.h +++ b/webkit/pending/ScriptController.h @@ -147,8 +147,8 @@ class Widget; typedef HashMap<void*, RefPtr<KJS::Bindings::RootObject> > RootObjectMap; typedef KJS::UString JSString; typedef KJS::Bindings::Instance* JSInstance; -typedef PassRefPtr<KJS::Bindings::Instance> JSInstanceReturnValue; -typedef KJS::Bindings::Instance* JSPersistentInstance; +typedef PassRefPtr<KJS::Bindings::Instance> JSInstanceHandle; +typedef RefPtr<KJS::Bindings::Instance> JSPersistentInstance; typedef KJS::JSValue* JSException; typedef KJS::JSValue* JSResult; #endif @@ -156,7 +156,7 @@ typedef KJS::JSValue* JSResult; #if USE(V8) typedef String JSString; typedef v8::Local<v8::Object> JSInstance; -typedef v8::Local<v8::Object> JSInstanceReturnValue; +typedef v8::Local<v8::Object> JSInstanceHandle; typedef v8::Persistent<v8::Object> JSPersistentInstance; typedef v8::Local<v8::Value> JSException; typedef v8::Persistent<v8::Value> JSResult; @@ -199,7 +199,7 @@ public: NPRuntimeFunctions* functions(); - JSInstanceReturnValue createScriptInstanceForWidget(Widget*); + JSInstanceHandle createScriptInstanceForWidget(Widget*); void clearPluginObjects(); void clearDocumentWrapper(); @@ -311,7 +311,7 @@ private: class JSInstanceHolder { public: JSInstanceHolder(); - JSInstanceHolder(JSInstance); + JSInstanceHolder(JSInstanceHandle); ~JSInstanceHolder(); // Returns true if the holder is empty. bool IsEmpty(); @@ -319,7 +319,7 @@ public: JSInstance Get(); // Clear the contained JSInstance. void Clear(); - JSInstanceHolder& operator=(JSInstance); + JSInstanceHolder& operator=(JSInstanceHandle); static JSInstance EmptyInstance(); private: |