Bug 363378: Caret gets stuck (or moves incorrectly) in empty table cells when using left/right arrow keys. r+sr=roc

This commit is contained in:
uriber%gmail.com 2006-12-15 09:32:24 +00:00
Родитель a4f7a8f68d
Коммит c14d0a8561
2 изменённых файлов: 18 добавлений и 0 удалений

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

@ -239,6 +239,22 @@ nsContainerFrame::IsLeaf() const
return PR_FALSE;
}
PRBool
nsContainerFrame::PeekOffsetNoAmount(PRBool aForward, PRInt32* aOffset)
{
NS_ASSERTION (aOffset && *aOffset <= 1, "aOffset out of range");
// Don't allow the caret to stay in an empty (leaf) container frame.
return PR_FALSE;
}
PRBool
nsContainerFrame::PeekOffsetCharacter(PRBool aForward, PRInt32* aOffset)
{
NS_ASSERTION (aOffset && *aOffset <= 1, "aOffset out of range");
// Don't allow the caret to stay in an empty (leaf) container frame.
return PR_FALSE;
}
/////////////////////////////////////////////////////////////////////////////
// Helper member functions

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

@ -69,6 +69,8 @@ public:
virtual void ChildIsDirty(nsIFrame* aChild);
virtual PRBool IsLeaf() const;
virtual PRBool PeekOffsetNoAmount(PRBool aForward, PRInt32* aOffset);
virtual PRBool PeekOffsetCharacter(PRBool aForward, PRInt32* aOffset);
#ifdef DEBUG
NS_IMETHOD List(FILE* out, PRInt32 aIndent) const;