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

This commit is contained in:
brendan@mozilla.org
2001-10-16 05:40:27 +00:00
parent 5cd04e5165
commit 3983cc539e
10 changed files with 253 additions and 59 deletions

View File

@@ -43,10 +43,6 @@
#include "nsCommandParams.h"
// will come from pldhash.h soon
#define PL_DHASH_ENTRY_IS_LIVE(entry) ((entry)->keyHash >= 2)
PLDHashTableOps nsCommandParams::sHashOps =
{
PL_DHashAllocTable,
@@ -277,7 +273,7 @@ nsCommandParams::HashEntry*
nsCommandParams::GetIndexedEntry(PRInt32 index)
{
HashEntry* entry = NS_REINTERPRET_CAST(HashEntry*, mValuesHash.entryStore);
HashEntry* limit = entry + PR_BIT(mValuesHash.sizeLog2);
HashEntry* limit = entry + PL_DHASH_TABLE_SIZE(&mValuesHash);
PRUint32 entryCount = 0;
do
@@ -299,7 +295,7 @@ PRUint32
nsCommandParams::GetNumEntries()
{
HashEntry* entry = NS_REINTERPRET_CAST(HashEntry*, mValuesHash.entryStore);
HashEntry* limit = entry + PR_BIT(mValuesHash.sizeLog2);
HashEntry* limit = entry + PL_DHASH_TABLE_SIZE(&mValuesHash);
PRUint32 entryCount = 0;
do