From 74c2fa7ad8acc8a29b1f815eec36098c0e7f6753 Mon Sep 17 00:00:00 2001 From: "dbaron%dbaron.org" Date: Sun, 15 Jun 2003 01:24:03 +0000 Subject: [PATCH] Slight correction to previous patch. b=209359 --- layout/generic/nsFrame.cpp | 6 ++++-- layout/html/base/src/nsFrame.cpp | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/layout/generic/nsFrame.cpp b/layout/generic/nsFrame.cpp index 68c2819b44dd..fa0436c9192e 100644 --- a/layout/generic/nsFrame.cpp +++ b/layout/generic/nsFrame.cpp @@ -4623,12 +4623,14 @@ GetIBSpecialSibling(nsIPresContext* aPresContext, } /* - * Get a next sibling, or, if there is none, get the parent's next in - * flow's first child. + * Get the last-in-flow's next sibling, or, if there is none, get the + * parent's next in flow's first child. */ static nsIFrame* GetNextSiblingAcrossLines(nsIPresContext *aPresContext, nsIFrame *aFrame) { + aFrame = aFrame->GetLastInFlow(); + nsIFrame *result; aFrame->GetNextSibling(&result); if (result) diff --git a/layout/html/base/src/nsFrame.cpp b/layout/html/base/src/nsFrame.cpp index 68c2819b44dd..fa0436c9192e 100644 --- a/layout/html/base/src/nsFrame.cpp +++ b/layout/html/base/src/nsFrame.cpp @@ -4623,12 +4623,14 @@ GetIBSpecialSibling(nsIPresContext* aPresContext, } /* - * Get a next sibling, or, if there is none, get the parent's next in - * flow's first child. + * Get the last-in-flow's next sibling, or, if there is none, get the + * parent's next in flow's first child. */ static nsIFrame* GetNextSiblingAcrossLines(nsIPresContext *aPresContext, nsIFrame *aFrame) { + aFrame = aFrame->GetLastInFlow(); + nsIFrame *result; aFrame->GetNextSibling(&result); if (result)