diff --git a/layout/forms/nsComboboxControlFrame.cpp b/layout/forms/nsComboboxControlFrame.cpp index f88a9ef1eacb..e3317e62d6fc 100644 --- a/layout/forms/nsComboboxControlFrame.cpp +++ b/layout/forms/nsComboboxControlFrame.cpp @@ -197,9 +197,6 @@ nsComboboxControlFrame::InitTextStr(PRBool aUpdate) nsIFrame* dropdownFrame = GetDropdownFrame(); nsresult result = dropdownFrame->QueryInterface(kIFormControlFrameIID, (void**)&fcFrame); - // Reset the list, so we can ask it for it's selected item. - fcFrame->Reset(); - // Update the selected text string mListControlFrame->GetSelectedItem(mTextStr); diff --git a/layout/html/forms/src/nsComboboxControlFrame.cpp b/layout/html/forms/src/nsComboboxControlFrame.cpp index f88a9ef1eacb..e3317e62d6fc 100644 --- a/layout/html/forms/src/nsComboboxControlFrame.cpp +++ b/layout/html/forms/src/nsComboboxControlFrame.cpp @@ -197,9 +197,6 @@ nsComboboxControlFrame::InitTextStr(PRBool aUpdate) nsIFrame* dropdownFrame = GetDropdownFrame(); nsresult result = dropdownFrame->QueryInterface(kIFormControlFrameIID, (void**)&fcFrame); - // Reset the list, so we can ask it for it's selected item. - fcFrame->Reset(); - // Update the selected text string mListControlFrame->GetSelectedItem(mTextStr);