mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 21:05:36 +00:00
Moving a couple of methods to nsCSSProps to be used by nsGetComputedStyle().
r=heikki, sr=jst
This commit is contained in:
parent
b20fb5da2d
commit
768c3fca30
@ -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) {
|
||||
|
@ -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) {
|
||||
|
@ -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[];
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user