ImportLoader*
ImportManager::Find(nsINode* aLink)
{
  HTMLLinkElement* linkElement = static_cast<HTMLLinkElement*>(aLink);
  nsCOMPtr<nsIURI> uri = linkElement->GetHrefURI();
  return mImports.GetWeak(uri);
}
Exemple #2
0
/*
Classification
*/
int TLFSabotageStrong::Classify(TLFImage* pImage, double& err)
{
	int c = 0;
	for (int i = 0; i < this->GetCount(); i++)
	{
		ILFWeak* w = GetWeak(i);
		c += w->Classify(pImage);
	}
#ifdef _DEBUG
	printf("%i\n", c);
#endif 
	return c > GetCount() / 2;
}
ImportLoader*
ImportManager::Find(nsIDocument* aImport)
{
  return mImports.GetWeak(aImport->GetDocumentURIObject());
}