From cb0b0bbf0b54706a4787585f86265e7522a21973 Mon Sep 17 00:00:00 2001 From: "bernd.mielke%snafu.de" Date: Fri, 25 Oct 2002 04:53:41 +0000 Subject: [PATCH] pass selection correctly to the children of a caption, bug 164313, r=dbaron sr=bzbarsky a=dbaron --- layout/html/table/src/nsTableOuterFrame.cpp | 3 ++- layout/tables/nsTableOuterFrame.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/layout/html/table/src/nsTableOuterFrame.cpp b/layout/html/table/src/nsTableOuterFrame.cpp index dab6c079d162..6199d009d99d 100644 --- a/layout/html/table/src/nsTableOuterFrame.cpp +++ b/layout/html/table/src/nsTableOuterFrame.cpp @@ -393,7 +393,8 @@ nsTableOuterFrame::GetFrameForPoint(nsIPresContext* aPresContext, // caption frames live in a different list which we need to check separately if (mCaptionFrame) { - rv = GetFrameForPointUsing(aPresContext, aPoint, nsLayoutAtoms::captionList, NS_FRAME_PAINT_LAYER_FOREGROUND, PR_FALSE, aFrame); + rv = GetFrameForPointUsing(aPresContext, aPoint, nsLayoutAtoms::captionList, aWhichLayer, + (aWhichLayer == NS_FRAME_PAINT_LAYER_BACKGROUND), aFrame); if (NS_OK == rv) { return NS_OK; } diff --git a/layout/tables/nsTableOuterFrame.cpp b/layout/tables/nsTableOuterFrame.cpp index dab6c079d162..6199d009d99d 100644 --- a/layout/tables/nsTableOuterFrame.cpp +++ b/layout/tables/nsTableOuterFrame.cpp @@ -393,7 +393,8 @@ nsTableOuterFrame::GetFrameForPoint(nsIPresContext* aPresContext, // caption frames live in a different list which we need to check separately if (mCaptionFrame) { - rv = GetFrameForPointUsing(aPresContext, aPoint, nsLayoutAtoms::captionList, NS_FRAME_PAINT_LAYER_FOREGROUND, PR_FALSE, aFrame); + rv = GetFrameForPointUsing(aPresContext, aPoint, nsLayoutAtoms::captionList, aWhichLayer, + (aWhichLayer == NS_FRAME_PAINT_LAYER_BACKGROUND), aFrame); if (NS_OK == rv) { return NS_OK; }