bool DocAccessibleChild::RecvDescription(const uint64_t& aID, nsString* aDesc) { Accessible* acc = IdToAccessible(aID); if (!acc) return true; acc->Description(*aDesc); return true; }
void HTMLComboboxAccessible::Description(nsString& aDescription) { aDescription.Truncate(); // First check to see if combo box itself has a description, perhaps through // tooltip (title attribute) or via aria-describedby Accessible::Description(aDescription); if (!aDescription.IsEmpty()) return; // Otherwise use description of selected option. Accessible* option = SelectedOption(); if (option) option->Description(aDescription); }