The table outer frame should not get events for any coordinates, since it includes the margins of the table and caption. b=200966 r=bernd sr=bzbarsky

git-svn-id: svn://10.0.0.236/trunk@140924 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dbaron%dbaron.org
2003-04-09 21:14:51 +00:00
parent 98eacaeedb
commit 67703ac4f8
2 changed files with 6 additions and 4 deletions

View File

@@ -390,8 +390,9 @@ nsTableOuterFrame::GetFrameForPoint(nsIPresContext* aPresContext,
return NS_OK;
}
}
// this should act like a block, so we need to override
return GetFrameForPointUsing(aPresContext, aPoint, nsnull, aWhichLayer, (aWhichLayer == NS_FRAME_PAINT_LAYER_BACKGROUND), aFrame);
// This frame should never get events (it contains the margins of the
// table), so always pass |PR_FALSE| for |aConsiderSelf|.
return GetFrameForPointUsing(aPresContext, aPoint, nsnull, aWhichLayer, PR_FALSE, aFrame);
}
NS_IMETHODIMP nsTableOuterFrame::SetSelected(nsIPresContext* aPresContext,