Bug 629394, part3 - replace do_QueryObject on AsHyperText, r=fer, a=davidb

This commit is contained in:
Alexander Surkov
2011-01-28 13:15:22 +08:00
parent 0ff7919b67
commit ce2ac61426
9 changed files with 26 additions and 20 deletions

View File

@@ -527,9 +527,13 @@ NotificationController::CoalesceTextChangeEventsFor(AccShowEvent* aTailEvent,
void
NotificationController::CreateTextChangeEventFor(AccMutationEvent* aEvent)
{
nsRefPtr<nsHyperTextAccessible> textAccessible = do_QueryObject(
nsAccessible* container =
GetAccService()->GetContainerAccessible(aEvent->mNode,
aEvent->mAccessible->GetWeakShell()));
aEvent->mAccessible->GetWeakShell());
if (!container)
return;
nsHyperTextAccessible* textAccessible = container->AsHyperText();
if (!textAccessible)
return;