Move inlined function nsCSSMargin::EnsureBorderColors() before the functions that use it in order to appease Sun's Workshop/Forte 6 compiler.
Fixing tinderbox bustage. git-svn-id: svn://10.0.0.236/trunk@109826 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
c3ee2e7fac
commit
b744e4e636
@ -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)
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user