1506 NS_IMETHODIMP nsDocAccessible::FlushPendingEvents()
1507 {
1508 PRUint32 length = mEventsToFire.Count();
1509 NS_ASSERTION(length, "How did we get here without events to fire?");
1510 nsCOMPtr<nsIPresShell> presShell = GetPresShell();
1511 if (!presShell)
1512 length = 0; // The doc is now shut down, don't fire events in it anymore
Calling GetPresShell() may cause the doc be shut down.
See comment #4.
1506 NS_IMETHODIMP nsDocAccessible ::FlushPendingE vents() Count() ; length, "How did we get here without events to fire?"); nsIPresShell> presShell = GetPresShell();
1507 {
1508 PRUint32 length = mEventsToFire.
1509 NS_ASSERTION(
1510 nsCOMPtr<
1511 if (!presShell)
1512 length = 0; // The doc is now shut down, don't fire events in it anymore
Calling GetPresShell() may cause the doc be shut down.
See comment #4.