зеркало из https://github.com/mozilla/pjs.git
makes sure we are responding to the correct layer for GetFrameForPoint (thanks dbaron)
b 38925
This commit is contained in:
Родитель
dc44c5c270
Коммит
ad3aa5c4e5
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче