void GeometryResourceWatcher::startWatching() { connect(_resource.data(), &Resource::finished, this, &GeometryResourceWatcher::resourceFinished); connect(_resource.data(), &Resource::onRefresh, this, &GeometryResourceWatcher::resourceRefreshed); if (_resource->isLoaded()) { resourceFinished(!_resource->getURL().isEmpty()); } }
void InspectorResourceContentLoader::ResourceClient::setCSSStyleSheet( const String&, const KURL& url, const String&, const CSSStyleSheetResource* resource) { resourceFinished(const_cast<CSSStyleSheetResource*>(resource)); }
void GeometryResourceWatcher::setResource(GeometryResource::Pointer resource) { if (_resource) { stopWatching(); } _resource = resource; if (_resource) { if (_resource->isLoaded()) { resourceFinished(true); } else { startWatching(); } } }
void InspectorResourceContentLoader::ResourceClient::notifyFinished(Resource* resource) { if (resource->type() == Resource::CSSStyleSheet) return; resourceFinished(resource); }