mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Bug 256833 Right arrow skips some text after <HR>
r=aaronleventhal sr=dbaron
This commit is contained in:
parent
cbf3debd30
commit
59cfede2d2
@ -3954,25 +3954,6 @@ nsFrame::GetFrameFromDirection(nsPresContext* aPresContext, nsPeekOffsetStruct *
|
||||
else
|
||||
#endif
|
||||
{
|
||||
//check to see if "this" is a blockframe if so we need to advance the linenum immediately
|
||||
//only if its dir is "next"
|
||||
if (aPos->mDirection == eDirNext)
|
||||
{
|
||||
nsCOMPtr<nsILineIteratorNavigator> tempLi;
|
||||
if (NS_SUCCEEDED(QueryInterface(NS_GET_IID(nsILineIteratorNavigator),getter_AddRefs(tempLi))))
|
||||
{
|
||||
thisLine++;
|
||||
result = it->GetLine(thisLine, &firstFrame, &lineFrameCount,nonUsedRect,
|
||||
&lineFlags);
|
||||
if (NS_SUCCEEDED(result) && firstFrame)
|
||||
traversedFrame = firstFrame;
|
||||
else
|
||||
{
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
result = it->GetLine(thisLine, &firstFrame, &lineFrameCount,nonUsedRect,
|
||||
&lineFlags);
|
||||
if (NS_FAILED(result))
|
||||
|
@ -3954,25 +3954,6 @@ nsFrame::GetFrameFromDirection(nsPresContext* aPresContext, nsPeekOffsetStruct *
|
||||
else
|
||||
#endif
|
||||
{
|
||||
//check to see if "this" is a blockframe if so we need to advance the linenum immediately
|
||||
//only if its dir is "next"
|
||||
if (aPos->mDirection == eDirNext)
|
||||
{
|
||||
nsCOMPtr<nsILineIteratorNavigator> tempLi;
|
||||
if (NS_SUCCEEDED(QueryInterface(NS_GET_IID(nsILineIteratorNavigator),getter_AddRefs(tempLi))))
|
||||
{
|
||||
thisLine++;
|
||||
result = it->GetLine(thisLine, &firstFrame, &lineFrameCount,nonUsedRect,
|
||||
&lineFlags);
|
||||
if (NS_SUCCEEDED(result) && firstFrame)
|
||||
traversedFrame = firstFrame;
|
||||
else
|
||||
{
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
result = it->GetLine(thisLine, &firstFrame, &lineFrameCount,nonUsedRect,
|
||||
&lineFlags);
|
||||
if (NS_FAILED(result))
|
||||
|
Loading…
Reference in New Issue
Block a user