зеркало из https://github.com/mozilla/gecko-dev.git
Bug 280055. AccessibleObjectFromPoint() broken for XUL tabs in Firefox. r+sr=roc
This commit is contained in:
Родитель
82165a285e
Коммит
75153d6e16
|
@ -589,8 +589,15 @@ PRBool nsAccessible::IsPartiallyVisible(PRBool *aIsOffscreen)
|
||||||
NS_STATIC_CAST(PRUint16, (kMinPixels * p2t)),
|
NS_STATIC_CAST(PRUint16, (kMinPixels * p2t)),
|
||||||
&rectVisibility);
|
&rectVisibility);
|
||||||
|
|
||||||
if (rectVisibility == nsRectVisibility_kVisible)
|
if (rectVisibility == nsRectVisibility_kVisible) {
|
||||||
|
// This view says it is visible, but we need to check the parent view chain :(
|
||||||
|
while ((containingView = containingView->GetParent()) != nsnull) {
|
||||||
|
if (containingView->GetVisibility() == nsViewVisibility_kHide) {
|
||||||
|
return PR_FALSE;
|
||||||
|
}
|
||||||
|
}
|
||||||
return PR_TRUE;
|
return PR_TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
*aIsOffscreen = rectVisibility != nsRectVisibility_kZeroAreaRect;
|
*aIsOffscreen = rectVisibility != nsRectVisibility_kZeroAreaRect;
|
||||||
return PR_FALSE;
|
return PR_FALSE;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче