зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
a4f7a8f68d
Коммит
c14d0a8561
|
@ -239,6 +239,22 @@ nsContainerFrame::IsLeaf() const
|
||||||
return PR_FALSE;
|
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
|
// Helper member functions
|
||||||
|
|
||||||
|
|
|
@ -69,6 +69,8 @@ public:
|
||||||
virtual void ChildIsDirty(nsIFrame* aChild);
|
virtual void ChildIsDirty(nsIFrame* aChild);
|
||||||
|
|
||||||
virtual PRBool IsLeaf() const;
|
virtual PRBool IsLeaf() const;
|
||||||
|
virtual PRBool PeekOffsetNoAmount(PRBool aForward, PRInt32* aOffset);
|
||||||
|
virtual PRBool PeekOffsetCharacter(PRBool aForward, PRInt32* aOffset);
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
NS_IMETHOD List(FILE* out, PRInt32 aIndent) const;
|
NS_IMETHOD List(FILE* out, PRInt32 aIndent) const;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче