pass selection correctly to the children of a caption, bug 164313, r=dbaron sr=bzbarsky a=dbaron

This commit is contained in:
bernd.mielke%snafu.de 2002-10-25 04:53:41 +00:00
parent 6e59614155
commit cb0b0bbf0b
2 changed files with 4 additions and 2 deletions

View File

@ -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;
}

View File

@ -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;
}