зеркало из https://github.com/mozilla/pjs.git
Fixed bad initialization of window enumerator. b=63947, r=danm, sr=alecf
This commit is contained in:
Родитель
8b26c35f74
Коммит
fb19ada73a
|
@ -288,6 +288,11 @@ nsWindowEnumerator::nsWindowEnumerator ( const PRUnichar* inTypeString,
|
|||
NS_INIT_REFCNT();
|
||||
mWindowMediator->AddEnumerator( this );
|
||||
mWindowMediator->AddRef();
|
||||
|
||||
// If creating an enumerator for specific type,
|
||||
// initialize with a window of that type
|
||||
if (!mType.IsEmpty() && mCurrentPosition && mCurrentPosition->GetType() != mType)
|
||||
mCurrentPosition = FindNext();
|
||||
}
|
||||
|
||||
nsWindowEnumerator::~nsWindowEnumerator()
|
||||
|
|
Загрузка…
Ссылка в новой задаче