improved carret navigation in tables containing rowspans, bug 187060 r=karnaze sr=sfraser

This commit is contained in:
bernd.mielke%snafu.de 2003-01-18 14:05:50 +00:00
Родитель d4fa752fcc
Коммит e8ee31f282
2 изменённых файлов: 10 добавлений и 6 удалений

Просмотреть файл

@ -2041,7 +2041,7 @@ nsTableRowGroupFrame::FindFrameAt(PRInt32 aLineNumber,
PRBool* aXIsBeforeFirstFrame,
PRBool* aXIsAfterLastFrame)
{
PRInt32 cellCount = 0;
PRInt32 colCount = 0;
CellData* cellData;
nsIFrame* tempFrame = nsnull;
nsRect tempRect;
@ -2054,15 +2054,17 @@ nsTableRowGroupFrame::FindFrameAt(PRInt32 aLineNumber,
if(!cellMap)
return NS_ERROR_FAILURE;
cellCount = cellMap->GetNumCellsOriginatingInRow(aLineNumber);
colCount = cellMap->GetColCount();
*aXIsBeforeFirstFrame = PR_FALSE;
*aXIsAfterLastFrame = PR_FALSE;
PRBool gotParentRect = PR_FALSE;
for(int i =0;i < cellCount; i++)
for (PRInt32 i = 0; i < colCount; i++)
{
cellData = cellMap->GetDataAt(aLineNumber, i);
if (!cellData->IsOrig())
continue;
tempFrame = (nsIFrame*)cellData->GetCellFrame();
if(!tempFrame)

Просмотреть файл

@ -2041,7 +2041,7 @@ nsTableRowGroupFrame::FindFrameAt(PRInt32 aLineNumber,
PRBool* aXIsBeforeFirstFrame,
PRBool* aXIsAfterLastFrame)
{
PRInt32 cellCount = 0;
PRInt32 colCount = 0;
CellData* cellData;
nsIFrame* tempFrame = nsnull;
nsRect tempRect;
@ -2054,15 +2054,17 @@ nsTableRowGroupFrame::FindFrameAt(PRInt32 aLineNumber,
if(!cellMap)
return NS_ERROR_FAILURE;
cellCount = cellMap->GetNumCellsOriginatingInRow(aLineNumber);
colCount = cellMap->GetColCount();
*aXIsBeforeFirstFrame = PR_FALSE;
*aXIsAfterLastFrame = PR_FALSE;
PRBool gotParentRect = PR_FALSE;
for(int i =0;i < cellCount; i++)
for (PRInt32 i = 0; i < colCount; i++)
{
cellData = cellMap->GetDataAt(aLineNumber, i);
if (!cellData->IsOrig())
continue;
tempFrame = (nsIFrame*)cellData->GetCellFrame();
if(!tempFrame)