зеркало из https://github.com/mozilla/gecko-dev.git
bug 844496 - handle the case of optgroup accessible's parent being a document with no content r=surkov
This commit is contained in:
Родитель
493bd5a2ab
Коммит
2d3fd4f887
|
@ -1757,6 +1757,7 @@ DocAccessible::UpdateTree(Accessible* aContainer, nsIContent* aChildNode,
|
|||
// XXX: since select change insertion point of option contained by optgroup
|
||||
// then we need to have special processing for them (bug 690417).
|
||||
if (!aIsInsert && aChildNode->IsHTML(nsGkAtoms::optgroup) &&
|
||||
aContainer->GetContent() &&
|
||||
aContainer->GetContent()->IsHTML(nsGkAtoms::select)) {
|
||||
for (nsIContent* optContent = aChildNode->GetFirstChild(); optContent;
|
||||
optContent = optContent->GetNextSibling()) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче