From 59cfede2d26b905bed406d8f23d08191fa133e9f Mon Sep 17 00:00:00 2001 From: "ginn.chen%sun.com" Date: Fri, 26 Nov 2004 05:51:36 +0000 Subject: [PATCH] Bug 256833 Right arrow skips some text after
r=aaronleventhal sr=dbaron --- layout/generic/nsFrame.cpp | 19 ------------------- layout/html/base/src/nsFrame.cpp | 19 ------------------- 2 files changed, 38 deletions(-) diff --git a/layout/generic/nsFrame.cpp b/layout/generic/nsFrame.cpp index c9b95e54c8cc..40e89397defc 100644 --- a/layout/generic/nsFrame.cpp +++ b/layout/generic/nsFrame.cpp @@ -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 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)) diff --git a/layout/html/base/src/nsFrame.cpp b/layout/html/base/src/nsFrame.cpp index c9b95e54c8cc..40e89397defc 100644 --- a/layout/html/base/src/nsFrame.cpp +++ b/layout/html/base/src/nsFrame.cpp @@ -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 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))