makes sure we are responding to the correct layer for GetFrameForPoint (thanks dbaron)

b 38925
This commit is contained in:
rods%netscape.com 2000-05-11 19:22:06 +00:00
Родитель dc44c5c270
Коммит ad3aa5c4e5
2 изменённых файлов: 14 добавлений и 4 удалений

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

@ -1706,8 +1706,13 @@ nsComboboxControlFrame::GetFrameForPoint(nsIPresContext* aPresContext,
}
return NS_ERROR_FAILURE;
#else
*aFrame = this;
return NS_OK;
if (inThisFrame && (aWhichLayer == NS_FRAME_PAINT_LAYER_FOREGROUND)) {
// should probably test for visibility, although children could be
// visible without parent, so I'm not sure...
*aFrame = this;
return NS_OK;
}
return NS_ERROR_FAILURE;
#endif
}

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

@ -1706,8 +1706,13 @@ nsComboboxControlFrame::GetFrameForPoint(nsIPresContext* aPresContext,
}
return NS_ERROR_FAILURE;
#else
*aFrame = this;
return NS_OK;
if (inThisFrame && (aWhichLayer == NS_FRAME_PAINT_LAYER_FOREGROUND)) {
// should probably test for visibility, although children could be
// visible without parent, so I'm not sure...
*aFrame = this;
return NS_OK;
}
return NS_ERROR_FAILURE;
#endif
}