Add SetAlphaBounds, TABLE_SIZE, and MIN_ALPHA APIs (103990, r=dbaron, sr=waterson).

git-svn-id: svn://10.0.0.236/trunk@105470 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
brendan%mozilla.org
2001-10-16 05:40:27 +00:00
parent f2bb49a853
commit 040a610072
10 changed files with 253 additions and 59 deletions

View File

@@ -497,7 +497,7 @@ nsFastLoadFileReader::EndMuxedDocument(nsISupports* aURI)
return NS_ERROR_NOT_AVAILABLE;
// Shrink the table if half the entries are removed sentinels.
PRUint32 size = PR_BIT(mFooter.mURIMap.sizeLog2);
PRUint32 size = PL_DHASH_TABLE_SIZE(&mFooter.mURIMap);
if (mFooter.mURIMap.removedCount >= (size >> 2))
PL_DHashTableOperate(&mFooter.mURIMap, key, PL_DHASH_REMOVE);
else