From 67703ac4f8f3c84bd1e5e5f688586d8c0d117895 Mon Sep 17 00:00:00 2001 From: "dbaron%dbaron.org" Date: Wed, 9 Apr 2003 21:14:51 +0000 Subject: [PATCH] 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 --- mozilla/layout/html/table/src/nsTableOuterFrame.cpp | 5 +++-- mozilla/layout/tables/nsTableOuterFrame.cpp | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/mozilla/layout/html/table/src/nsTableOuterFrame.cpp b/mozilla/layout/html/table/src/nsTableOuterFrame.cpp index 05de7adf7b6..56adcae585c 100644 --- a/mozilla/layout/html/table/src/nsTableOuterFrame.cpp +++ b/mozilla/layout/html/table/src/nsTableOuterFrame.cpp @@ -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, diff --git a/mozilla/layout/tables/nsTableOuterFrame.cpp b/mozilla/layout/tables/nsTableOuterFrame.cpp index 05de7adf7b6..56adcae585c 100644 --- a/mozilla/layout/tables/nsTableOuterFrame.cpp +++ b/mozilla/layout/tables/nsTableOuterFrame.cpp @@ -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,