Moving a couple of methods to nsCSSProps to be used by nsGetComputedStyle().

r=heikki, sr=jst
This commit is contained in:
harishd%netscape.com 2001-03-03 00:43:12 +00:00
parent b20fb5da2d
commit 768c3fca30
4 changed files with 15 additions and 9 deletions

View File

@ -669,7 +669,8 @@ const PRInt32 nsCSSProps::kWhitespaceKTable[] = {
-1,-1
};
static PRInt32 SearchKeywordTableInt(PRInt32 aValue, const PRInt32 aTable[])
PRInt32
nsCSSProps::SearchKeywordTableInt(PRInt32 aValue, const PRInt32 aTable[])
{
PRInt32 i = 1;
for (;;) {
@ -684,8 +685,8 @@ static PRInt32 SearchKeywordTableInt(PRInt32 aValue, const PRInt32 aTable[])
return -1;
}
static const nsCString&
SearchKeywordTable(PRInt32 aValue, const PRInt32 aTable[])
const nsCString&
nsCSSProps::SearchKeywordTable(PRInt32 aValue, const PRInt32 aTable[])
{
PRInt32 i = SearchKeywordTableInt(aValue, aTable);
if (i < 0) {

View File

@ -669,7 +669,8 @@ const PRInt32 nsCSSProps::kWhitespaceKTable[] = {
-1,-1
};
static PRInt32 SearchKeywordTableInt(PRInt32 aValue, const PRInt32 aTable[])
PRInt32
nsCSSProps::SearchKeywordTableInt(PRInt32 aValue, const PRInt32 aTable[])
{
PRInt32 i = 1;
for (;;) {
@ -684,8 +685,8 @@ static PRInt32 SearchKeywordTableInt(PRInt32 aValue, const PRInt32 aTable[])
return -1;
}
static const nsCString&
SearchKeywordTable(PRInt32 aValue, const PRInt32 aTable[])
const nsCString&
nsCSSProps::SearchKeywordTable(PRInt32 aValue, const PRInt32 aTable[])
{
PRInt32 i = SearchKeywordTableInt(aValue, aTable);
if (i < 0) {

View File

@ -64,6 +64,9 @@ public:
static const PRInt32 kHintTable[];
static PRInt32 SearchKeywordTableInt(PRInt32 aValue, const PRInt32 aTable[]);
static const nsCString& SearchKeywordTable(PRInt32 aValue, const PRInt32 aTable[]);
// Keyword/Enum value tables
static const PRInt32 kAzimuthKTable[];
static const PRInt32 kBackgroundAttachmentKTable[];

View File

@ -669,7 +669,8 @@ const PRInt32 nsCSSProps::kWhitespaceKTable[] = {
-1,-1
};
static PRInt32 SearchKeywordTableInt(PRInt32 aValue, const PRInt32 aTable[])
PRInt32
nsCSSProps::SearchKeywordTableInt(PRInt32 aValue, const PRInt32 aTable[])
{
PRInt32 i = 1;
for (;;) {
@ -684,8 +685,8 @@ static PRInt32 SearchKeywordTableInt(PRInt32 aValue, const PRInt32 aTable[])
return -1;
}
static const nsCString&
SearchKeywordTable(PRInt32 aValue, const PRInt32 aTable[])
const nsCString&
nsCSSProps::SearchKeywordTable(PRInt32 aValue, const PRInt32 aTable[])
{
PRInt32 i = SearchKeywordTableInt(aValue, aTable);
if (i < 0) {