Move inlined function nsCSSMargin::EnsureBorderColors() before the functions that use it in order to appease Sun's Workshop/Forte 6 compiler.

Fixing tinderbox bustage.
This commit is contained in:
seawood%netscape.com 2001-12-06 10:10:15 +00:00
parent 61669001b4
commit 59945f6ecb
4 changed files with 40 additions and 40 deletions

View File

@ -417,6 +417,16 @@ void nsCSSDisplay::List(FILE* out, PRInt32 aIndent) const
// --- nsCSSMargin -----------------
inline void nsCSSMargin::EnsureBorderColors()
{
if (!mBorderColors) {
PRInt32 i;
mBorderColors = new nsCSSValueList*[4];
for (i = 0; i < 4; i++)
mBorderColors[i] = nsnull;
}
}
nsCSSMargin::nsCSSMargin(void)
: mMargin(nsnull), mPadding(nsnull),
mBorderWidth(nsnull), mBorderColor(nsnull), mBorderColors(nsnull),
@ -536,16 +546,6 @@ void nsCSSMargin::List(FILE* out, PRInt32 aIndent) const
fputs(NS_LossyConvertUCS2toASCII(buffer).get(), out);
}
inline void nsCSSMargin::EnsureBorderColors()
{
if (!mBorderColors) {
PRInt32 i;
mBorderColors = new nsCSSValueList*[4];
for (i = 0; i < 4; i++)
mBorderColors[i] = nsnull;
}
}
// --- nsCSSPosition -----------------
nsCSSPosition::nsCSSPosition(void)

View File

@ -417,6 +417,16 @@ void nsCSSDisplay::List(FILE* out, PRInt32 aIndent) const
// --- nsCSSMargin -----------------
inline void nsCSSMargin::EnsureBorderColors()
{
if (!mBorderColors) {
PRInt32 i;
mBorderColors = new nsCSSValueList*[4];
for (i = 0; i < 4; i++)
mBorderColors[i] = nsnull;
}
}
nsCSSMargin::nsCSSMargin(void)
: mMargin(nsnull), mPadding(nsnull),
mBorderWidth(nsnull), mBorderColor(nsnull), mBorderColors(nsnull),
@ -536,16 +546,6 @@ void nsCSSMargin::List(FILE* out, PRInt32 aIndent) const
fputs(NS_LossyConvertUCS2toASCII(buffer).get(), out);
}
inline void nsCSSMargin::EnsureBorderColors()
{
if (!mBorderColors) {
PRInt32 i;
mBorderColors = new nsCSSValueList*[4];
for (i = 0; i < 4; i++)
mBorderColors[i] = nsnull;
}
}
// --- nsCSSPosition -----------------
nsCSSPosition::nsCSSPosition(void)

View File

@ -417,6 +417,16 @@ void nsCSSDisplay::List(FILE* out, PRInt32 aIndent) const
// --- nsCSSMargin -----------------
inline void nsCSSMargin::EnsureBorderColors()
{
if (!mBorderColors) {
PRInt32 i;
mBorderColors = new nsCSSValueList*[4];
for (i = 0; i < 4; i++)
mBorderColors[i] = nsnull;
}
}
nsCSSMargin::nsCSSMargin(void)
: mMargin(nsnull), mPadding(nsnull),
mBorderWidth(nsnull), mBorderColor(nsnull), mBorderColors(nsnull),
@ -536,16 +546,6 @@ void nsCSSMargin::List(FILE* out, PRInt32 aIndent) const
fputs(NS_LossyConvertUCS2toASCII(buffer).get(), out);
}
inline void nsCSSMargin::EnsureBorderColors()
{
if (!mBorderColors) {
PRInt32 i;
mBorderColors = new nsCSSValueList*[4];
for (i = 0; i < 4; i++)
mBorderColors[i] = nsnull;
}
}
// --- nsCSSPosition -----------------
nsCSSPosition::nsCSSPosition(void)

View File

@ -417,6 +417,16 @@ void nsCSSDisplay::List(FILE* out, PRInt32 aIndent) const
// --- nsCSSMargin -----------------
inline void nsCSSMargin::EnsureBorderColors()
{
if (!mBorderColors) {
PRInt32 i;
mBorderColors = new nsCSSValueList*[4];
for (i = 0; i < 4; i++)
mBorderColors[i] = nsnull;
}
}
nsCSSMargin::nsCSSMargin(void)
: mMargin(nsnull), mPadding(nsnull),
mBorderWidth(nsnull), mBorderColor(nsnull), mBorderColors(nsnull),
@ -536,16 +546,6 @@ void nsCSSMargin::List(FILE* out, PRInt32 aIndent) const
fputs(NS_LossyConvertUCS2toASCII(buffer).get(), out);
}
inline void nsCSSMargin::EnsureBorderColors()
{
if (!mBorderColors) {
PRInt32 i;
mBorderColors = new nsCSSValueList*[4];
for (i = 0; i < 4; i++)
mBorderColors[i] = nsnull;
}
}
// --- nsCSSPosition -----------------
nsCSSPosition::nsCSSPosition(void)