Change FlushPendingNotifications to have more granularity and update callers to

only flush the things they really need flushed.  Bug 144072, r+sr=jst
This commit is contained in:
bzbarsky%mit.edu 2006-05-17 02:38:33 +00:00
Родитель 1e4c9a52b9
Коммит da6cb5e92d
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -169,7 +169,7 @@ inLayoutUtils::GetScreenOrigin(nsIDOMElement* aElement)
if (presShell) {
// Flush all pending notifications so that our frames are uptodate
presShell->FlushPendingNotifications(PR_FALSE);
doc->FlushPendingNotifications(Flush_Layout);
nsCOMPtr<nsIPresContext> presContext;
presShell->GetPresContext(getter_AddRefs(presContext));