зеркало из https://github.com/mozilla/gecko-dev.git
Bug 492961 - Crash [@ nsHTMLTableHeaderAccessible::GetRoleInternal(unsigned int*) ], r=marcoz, davidb
This commit is contained in:
Родитель
97b378570c
Коммит
0d48750803
|
@ -403,6 +403,8 @@ nsHTMLTableHeaderCellAccessible::GetRoleInternal(PRUint32 *aRole)
|
||||||
// Assume it's columnheader if there are headers in siblings, oterwise
|
// Assume it's columnheader if there are headers in siblings, oterwise
|
||||||
// rowheader.
|
// rowheader.
|
||||||
nsIContent* parent = content->GetParent();
|
nsIContent* parent = content->GetParent();
|
||||||
|
NS_ENSURE_STATE(parent);
|
||||||
|
|
||||||
PRInt32 indexInParent = parent->IndexOf(content);
|
PRInt32 indexInParent = parent->IndexOf(content);
|
||||||
|
|
||||||
for (PRInt32 idx = indexInParent - 1; idx >= 0; idx--) {
|
for (PRInt32 idx = indexInParent - 1; idx >= 0; idx--) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче