Fix for 93111, Make table row and col frame invalid as direct targets of mouseevents. Mouseevents on table should hit cells or the table itself instead. r:dbaron, sr:jst

This commit is contained in:
joki%netscape.com 2002-04-14 21:52:52 +00:00
Родитель a5cda6ec41
Коммит af9379992c
8 изменённых файлов: 4 добавлений и 40 удалений

Просмотреть файл

@ -161,15 +161,6 @@ nsTableColFrame::GetFrameForPoint(nsIPresContext* aPresContext,
nsFramePaintLayer aWhichLayer,
nsIFrame** aFrame)
{
if ((aWhichLayer == NS_FRAME_PAINT_LAYER_BACKGROUND) &&
(mRect.Contains(aPoint))) {
const nsStyleVisibility* vis =
(const nsStyleVisibility*)mStyleContext->GetStyleData(eStyleStruct_Visibility);
if (vis->IsVisible()) {
*aFrame = this;
return NS_OK;
}
}
return NS_ERROR_FAILURE;
}

Просмотреть файл

@ -437,7 +437,7 @@ nsTableColGroupFrame::GetFrameForPoint(nsIPresContext* aPresContext,
nsIFrame** aFrame)
{
// this should act like a block, so we need to override
return GetFrameForPointUsing(aPresContext, aPoint, nsnull, aWhichLayer, (aWhichLayer == NS_FRAME_PAINT_LAYER_BACKGROUND), aFrame);
return GetFrameForPointUsing(aPresContext, aPoint, nsnull, aWhichLayer, PR_FALSE, aFrame);
}
NS_METHOD nsTableColGroupFrame::Reflow(nsIPresContext* aPresContext,

Просмотреть файл

@ -707,15 +707,6 @@ nsTableRowFrame::GetFrameForPoint(nsIPresContext* aPresContext,
return NS_OK;
}
if ( inThisFrame && (aWhichLayer == NS_FRAME_PAINT_LAYER_BACKGROUND)) {
const nsStyleVisibility* vis =
(const nsStyleVisibility*)mStyleContext->GetStyleData(eStyleStruct_Visibility);
if (vis->IsVisible()) {
*aFrame = this;
return NS_OK;
}
}
return NS_ERROR_FAILURE;
}

Просмотреть файл

@ -305,7 +305,7 @@ nsTableRowGroupFrame::GetFrameForPoint(nsIPresContext* aPresContext,
nsIFrame** aFrame)
{
// this should act like a block, so we need to override
return GetFrameForPointUsing(aPresContext, aPoint, nsnull, aWhichLayer, (aWhichLayer == NS_FRAME_PAINT_LAYER_BACKGROUND), aFrame);
return GetFrameForPointUsing(aPresContext, aPoint, nsnull, aWhichLayer, PR_FALSE, aFrame);
}
// Position and size aKidFrame and update our reflow state. The origin of

Просмотреть файл

@ -161,15 +161,6 @@ nsTableColFrame::GetFrameForPoint(nsIPresContext* aPresContext,
nsFramePaintLayer aWhichLayer,
nsIFrame** aFrame)
{
if ((aWhichLayer == NS_FRAME_PAINT_LAYER_BACKGROUND) &&
(mRect.Contains(aPoint))) {
const nsStyleVisibility* vis =
(const nsStyleVisibility*)mStyleContext->GetStyleData(eStyleStruct_Visibility);
if (vis->IsVisible()) {
*aFrame = this;
return NS_OK;
}
}
return NS_ERROR_FAILURE;
}

Просмотреть файл

@ -437,7 +437,7 @@ nsTableColGroupFrame::GetFrameForPoint(nsIPresContext* aPresContext,
nsIFrame** aFrame)
{
// this should act like a block, so we need to override
return GetFrameForPointUsing(aPresContext, aPoint, nsnull, aWhichLayer, (aWhichLayer == NS_FRAME_PAINT_LAYER_BACKGROUND), aFrame);
return GetFrameForPointUsing(aPresContext, aPoint, nsnull, aWhichLayer, PR_FALSE, aFrame);
}
NS_METHOD nsTableColGroupFrame::Reflow(nsIPresContext* aPresContext,

Просмотреть файл

@ -707,15 +707,6 @@ nsTableRowFrame::GetFrameForPoint(nsIPresContext* aPresContext,
return NS_OK;
}
if ( inThisFrame && (aWhichLayer == NS_FRAME_PAINT_LAYER_BACKGROUND)) {
const nsStyleVisibility* vis =
(const nsStyleVisibility*)mStyleContext->GetStyleData(eStyleStruct_Visibility);
if (vis->IsVisible()) {
*aFrame = this;
return NS_OK;
}
}
return NS_ERROR_FAILURE;
}

Просмотреть файл

@ -305,7 +305,7 @@ nsTableRowGroupFrame::GetFrameForPoint(nsIPresContext* aPresContext,
nsIFrame** aFrame)
{
// this should act like a block, so we need to override
return GetFrameForPointUsing(aPresContext, aPoint, nsnull, aWhichLayer, (aWhichLayer == NS_FRAME_PAINT_LAYER_BACKGROUND), aFrame);
return GetFrameForPointUsing(aPresContext, aPoint, nsnull, aWhichLayer, PR_FALSE, aFrame);
}
// Position and size aKidFrame and update our reflow state. The origin of