wallpaper over a zero pointer deref, bug 237421, r/sr=dbaron a=chofmann
git-svn-id: svn://10.0.0.236/trunk@153981 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
9e4e819c84
commit
7eba618f24
@ -345,7 +345,10 @@ TableBackgroundPainter::TranslateContext(nscoord aDX,
|
||||
for (PRUint32 i = 0; i < mNumCols; i++) {
|
||||
mCols[i].mCol.mRect.MoveBy(-aDX, -aDY);
|
||||
if (lastColGroup != mCols[i].mColGroup) {
|
||||
NS_ASSERTION(mCols[i].mColGroup, "colgroup data should not be null");
|
||||
NS_ASSERTION(mCols[i].mColGroup, "colgroup data should not be null - bug 237421");
|
||||
// we need to wallpaper a over zero pointer deref, bug 237421 will have the real fix
|
||||
if (!mCols[i].mColGroup)
|
||||
return;
|
||||
mCols[i].mColGroup->mRect.MoveBy(-aDX, -aDY);
|
||||
lastColGroup = mCols[i].mColGroup;
|
||||
}
|
||||
|
||||
@ -345,7 +345,10 @@ TableBackgroundPainter::TranslateContext(nscoord aDX,
|
||||
for (PRUint32 i = 0; i < mNumCols; i++) {
|
||||
mCols[i].mCol.mRect.MoveBy(-aDX, -aDY);
|
||||
if (lastColGroup != mCols[i].mColGroup) {
|
||||
NS_ASSERTION(mCols[i].mColGroup, "colgroup data should not be null");
|
||||
NS_ASSERTION(mCols[i].mColGroup, "colgroup data should not be null - bug 237421");
|
||||
// we need to wallpaper a over zero pointer deref, bug 237421 will have the real fix
|
||||
if (!mCols[i].mColGroup)
|
||||
return;
|
||||
mCols[i].mColGroup->mRect.MoveBy(-aDX, -aDY);
|
||||
lastColGroup = mCols[i].mColGroup;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user