Make sure to clear the event queue before processing restyles, in case that

tries to post reflow events. Bug 266171, r+sr=dbaron
This commit is contained in:
bzbarsky%mit.edu 2004-10-26 21:42:37 +00:00
Родитель aed8b89291
Коммит f4e1dbcf2e
2 изменённых файлов: 2 добавлений и 2 удалений

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

@ -13747,8 +13747,8 @@ void nsCSSFrameConstructor::RestyleEvent::HandleEvent() {
NS_ASSERTION(viewManager, "Must have view manager for update");
viewManager->BeginUpdateViewBatch();
constructor->ProcessPendingRestyles();
constructor->mRestyleEventQueue = nsnull;
constructor->ProcessPendingRestyles();
viewManager->EndUpdateViewBatch(NS_VMREFRESH_NO_SYNC);
}

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

@ -13747,8 +13747,8 @@ void nsCSSFrameConstructor::RestyleEvent::HandleEvent() {
NS_ASSERTION(viewManager, "Must have view manager for update");
viewManager->BeginUpdateViewBatch();
constructor->ProcessPendingRestyles();
constructor->mRestyleEventQueue = nsnull;
constructor->ProcessPendingRestyles();
viewManager->EndUpdateViewBatch(NS_VMREFRESH_NO_SYNC);
}