fix for bug#59577 - hang during keyboard navigation
r=kin sr=buster git-svn-id: svn://10.0.0.236/trunk@84075 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
8dd6c1b5b4
commit
0c9762c747
@ -3196,7 +3196,8 @@ nsFrame::PeekOffset(nsIPresContext* aPresContext, nsPeekOffsetStruct *aPos)
|
||||
}
|
||||
else
|
||||
doneLooping = PR_TRUE; //do not continue with while loop
|
||||
if (NS_SUCCEEDED(result) && aPos->mResultFrame){
|
||||
if (NS_SUCCEEDED(result) && aPos->mResultFrame && blockFrame != aPos->mResultFrame)// make sure block element is not the same as the one we had before.
|
||||
{
|
||||
result = aPos->mResultFrame->QueryInterface(NS_GET_IID(nsILineIteratorNavigator),getter_AddRefs(it));
|
||||
if (NS_SUCCEEDED(result) && it)//we have struck another block element!
|
||||
{
|
||||
|
||||
@ -3196,7 +3196,8 @@ nsFrame::PeekOffset(nsIPresContext* aPresContext, nsPeekOffsetStruct *aPos)
|
||||
}
|
||||
else
|
||||
doneLooping = PR_TRUE; //do not continue with while loop
|
||||
if (NS_SUCCEEDED(result) && aPos->mResultFrame){
|
||||
if (NS_SUCCEEDED(result) && aPos->mResultFrame && blockFrame != aPos->mResultFrame)// make sure block element is not the same as the one we had before.
|
||||
{
|
||||
result = aPos->mResultFrame->QueryInterface(NS_GET_IID(nsILineIteratorNavigator),getter_AddRefs(it));
|
||||
if (NS_SUCCEEDED(result) && it)//we have struck another block element!
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user