Bug 170547 Caret is in the wrong place after deleting <LI>'s. r+sr=kin.

This commit is contained in:
smontagu%netscape.com 2003-04-23 00:24:24 +00:00
parent 4edb1f430d
commit d2e02afe6c
2 changed files with 8 additions and 10 deletions

View File

@ -249,13 +249,12 @@ nsInlineFrame::RemoveFrame(nsIPresContext* aPresContext,
// Loop and destroy the frame and all of its continuations.
PRBool generateReflowCommand = PR_FALSE;
// If the frame we are removing is a brFrame and we have a
// nextInFlow, we need a reflow so we can attempt to pull up
// any frames in the nextInFlow that can fit on the line
// the brFrame was on.
// If the frame we are removing is a brFrame, we need a reflow so
// the line the brFrame was on can attempt to pull up any frames
// that can fit from lines below it.
nsCOMPtr<nsIAtom> frameType;
aOldFrame->GetFrameType(getter_AddRefs(frameType));
if (frameType == nsLayoutAtoms::brFrame && mNextInFlow)
if (frameType == nsLayoutAtoms::brFrame)
generateReflowCommand = PR_TRUE;
nsIFrame* oldFrameParent;

View File

@ -249,13 +249,12 @@ nsInlineFrame::RemoveFrame(nsIPresContext* aPresContext,
// Loop and destroy the frame and all of its continuations.
PRBool generateReflowCommand = PR_FALSE;
// If the frame we are removing is a brFrame and we have a
// nextInFlow, we need a reflow so we can attempt to pull up
// any frames in the nextInFlow that can fit on the line
// the brFrame was on.
// If the frame we are removing is a brFrame, we need a reflow so
// the line the brFrame was on can attempt to pull up any frames
// that can fit from lines below it.
nsCOMPtr<nsIAtom> frameType;
aOldFrame->GetFrameType(getter_AddRefs(frameType));
if (frameType == nsLayoutAtoms::brFrame && mNextInFlow)
if (frameType == nsLayoutAtoms::brFrame)
generateReflowCommand = PR_TRUE;
nsIFrame* oldFrameParent;