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