Commit cb0b0bbf authored by bernd.mielke%snafu.de's avatar bernd.mielke%snafu.de
Browse files

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

parent 6e596141
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;
    }
+2 −1
Original line number Diff line number Diff line
@@ -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;
    }