BoxFrame should only be the point target in the background layer, and should

propagate background layer point requests to kids.  Bug 224013, r+sr=dbaron
This commit is contained in:
bzbarsky%mit.edu 2003-11-13 04:13:12 +00:00
Родитель ce5cf4d481
Коммит ef27d8e3db
1 изменённых файлов: 1 добавлений и 5 удалений

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

@ -1795,10 +1795,6 @@ nsBoxFrame::GetFrameForPoint(nsIPresContext* aPresContext,
nsFramePaintLayer aWhichLayer,
nsIFrame** aFrame)
{
if ((aWhichLayer != NS_FRAME_PAINT_LAYER_FOREGROUND))
return NS_ERROR_FAILURE;
if (!mRect.Contains(aPoint))
return NS_ERROR_FAILURE;
@ -1869,7 +1865,7 @@ nsBoxFrame::GetFrameForPoint(nsIPresContext* aPresContext,
}
// if no kids were hit then select us
if (vis->IsVisible()) {
if (aWhichLayer == NS_FRAME_PAINT_LAYER_BACKGROUND && vis->IsVisible()) {
*aFrame = this;
return NS_OK;
}