void RenderMenuList::valueChanged(unsigned listIndex, bool fireOnChange) { // Check to ensure a page navigation has not occurred while // the popup was up. Document* doc = toElement(node())->document(); if (!doc || doc != doc->frame()->document()) return; HTMLSelectElement* select = selectElement(); select->optionSelectedByUser(select->listToOptionIndex(listIndex), fireOnChange); }