Removing pointless GetIndex() call that does nothing but slow us down. r=jkeiser@iname.com, r=bzbarsky@mit.edu, sr=me.

This commit is contained in:
jst%netscape.com 2001-11-05 06:15:14 +00:00
Родитель 1054d20ae5
Коммит e66288bf71
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -267,9 +267,8 @@ NS_IMETHODIMP
nsHTMLOptionElement::SetSelectedInternal(PRBool aValue, PRBool aNotify)
{
mIsInitialized = PR_TRUE;
// This affects the display, but what the hey, it's a good place for it
PRInt32 ind;
GetIndex(&ind);
if (aValue) {
return SetAttr(kNameSpaceID_None,
nsLayoutAtoms::optionSelectedPseudo,