Lines Matching refs:_private
145 ASSERT(!_private->imp);
146 ASSERT(!_private->rootObject);
147 ASSERT(!_private->originRootObject);
150 _private->imp = imp;
151 _private->rootObject = rootObject.releaseRef();
152 _private->originRootObject = originRootObject.releaseRef();
156 if (_private->rootObject)
157 _private->rootObject->gcProtect(imp);
162 ASSERT(_private->imp);
165 rootObject->gcProtect(_private->imp);
167 if (_private->rootObject && _private->rootObject->isValid())
168 _private->rootObject->gcUnprotect(_private->imp);
170 if (_private->rootObject)
171 _private->rootObject->deref();
173 if (_private->originRootObject)
174 _private->originRootObject->deref();
176 _private->rootObject = rootObject.releaseRef();
177 _private->originRootObject = originRootObject.releaseRef();
185 _private = [[WebScriptObjectPrivate alloc] init];
195 if (!_private->imp && _private->isCreatedByDOMWrapper)
197 return [self _rootObject] ? _private->imp : 0;
202 return _private->imp != nil;
206 // use this method call instead of _private->rootObject directly.
209 return _private->rootObject && _private->rootObject->isValid() ? _private->rootObject : 0;
214 return _private->originRootObject && _private->originRootObject->isValid() ? _private->originRootObject : 0;
223 if (!_private->originRootObject)
226 if (!_private->originRootObject->isValid())
229 return root->globalObject()->allowsAccessFrom(_private->originRootObject->globalObject());
237 if (_private->imp)
238 WebCore::removeJSWrapper(_private->imp);
240 if (_private->rootObject && _private->rootObject->isValid())
241 _private->rootObject->gcUnprotect(_private->imp);
243 if (_private->rootObject)
244 _private->rootObject->deref();
246 if (_private->originRootObject)
247 _private->originRootObject->deref();
249 [_private release];
256 if (_private->rootObject && _private->rootObject->isValid())
257 _private->rootObject->gcUnprotect(_private->imp);
259 if (_private->rootObject)
260 _private->rootObject->deref();
262 if (_private->originRootObject)
263 _private->originRootObject->deref();