Changeset 22056 in webkit for trunk/JavaScriptCore/bindings/runtime.cpp
- Timestamp:
- Jun 7, 2007, 4:16:37 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/bindings/runtime.cpp
r19183 r22056 96 96 97 97 98 Instance::Instance() 99 : _refCount(0) 98 Instance::Instance(PassRefPtr<RootObject> rootObject) 99 : _rootObject(rootObject) 100 , _refCount(0) 100 101 { 101 102 } … … 127 128 #if HAVE(JNI) 128 129 case Instance::JavaLanguage: { 129 newInstance = new Bindings::JavaInstance((jobject)nativeInstance );130 newInstance = new Bindings::JavaInstance((jobject)nativeInstance, rootObject); 130 131 break; 131 132 } … … 133 134 #if PLATFORM(MAC) 134 135 case Instance::ObjectiveCLanguage: { 135 newInstance = new Bindings::ObjcInstance((ObjectStructPtr)nativeInstance );136 newInstance = new Bindings::ObjcInstance((ObjectStructPtr)nativeInstance, rootObject); 136 137 break; 137 138 } 138 139 #endif 139 140 case Instance::CLanguage: { 140 newInstance = new Bindings::CInstance((NPObject *)nativeInstance );141 newInstance = new Bindings::CInstance((NPObject *)nativeInstance, rootObject); 141 142 break; 142 143 } 143 144 #if PLATFORM(QT) 144 145 case Instance::QtLanguage: { 145 newInstance = new Bindings::QtInstance((QObject *)nativeInstance );146 newInstance = new Bindings::QtInstance((QObject *)nativeInstance, rootObject); 146 147 break; 147 148 } … … 151 152 } 152 153 153 if (newInstance)154 newInstance->setRootObject(rootObject);155 156 154 return newInstance; 157 155 } … … 165 163 } 166 164 167 void Instance::setRootObject(PassRefPtr<RootObject> rootObject)168 {169 _rootObject = rootObject;170 }171 172 165 RootObject* Instance::rootObject() const 173 166 {
Note:
See TracChangeset
for help on using the changeset viewer.