From f4e1dbcf2e2334e77e071f503f3d97a00a0f1d04 Mon Sep 17 00:00:00 2001 From: "bzbarsky%mit.edu" Date: Tue, 26 Oct 2004 21:42:37 +0000 Subject: [PATCH] Make sure to clear the event queue before processing restyles, in case that tries to post reflow events. Bug 266171, r+sr=dbaron --- layout/base/nsCSSFrameConstructor.cpp | 2 +- layout/html/style/src/nsCSSFrameConstructor.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layout/base/nsCSSFrameConstructor.cpp b/layout/base/nsCSSFrameConstructor.cpp index 2194e4a28fc7..7b8563901729 100644 --- a/layout/base/nsCSSFrameConstructor.cpp +++ b/layout/base/nsCSSFrameConstructor.cpp @@ -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); } diff --git a/layout/html/style/src/nsCSSFrameConstructor.cpp b/layout/html/style/src/nsCSSFrameConstructor.cpp index 2194e4a28fc7..7b8563901729 100644 --- a/layout/html/style/src/nsCSSFrameConstructor.cpp +++ b/layout/html/style/src/nsCSSFrameConstructor.cpp @@ -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); }