зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
1054d20ae5
Коммит
e66288bf71
|
@ -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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче