Fix crash due to text inputs flushing pending restyles while we're in text

control frame code.  Bug 257818, r+sr=dbaron
This commit is contained in:
bzbarsky%mit.edu 2004-09-13 04:19:58 +00:00
Родитель 0fe0345b40
Коммит 7f286e3000
3 изменённых файлов: 2 добавлений и 6 удалений

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

@ -2226,10 +2226,6 @@ nsGenericHTMLElement::GetPrimaryFrameFor(nsIContent* aContent,
// Cause a flush of content, so we get up-to-date frame
// information
aDocument->FlushPendingNotifications(Flush_Frames);
} else {
// Still need to flush out style reresolves so we don't hand back
// a frame that could get destroyed on layout flush
aDocument->FlushPendingNotifications(Flush_StyleReresolves);
}
// Get presentation shell 0

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

@ -5016,7 +5016,7 @@ PresShell::EndReflowBatching(PRBool aFlushPendingReflows)
nsresult rv = NS_OK;
mBatchReflows = PR_FALSE;
if (aFlushPendingReflows) {
rv = FlushPendingNotifications(Flush_Layout);
rv = FlushPendingNotifications(Flush_OnlyReflow);
}
else {
PostReflowEvent();

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

@ -5016,7 +5016,7 @@ PresShell::EndReflowBatching(PRBool aFlushPendingReflows)
nsresult rv = NS_OK;
mBatchReflows = PR_FALSE;
if (aFlushPendingReflows) {
rv = FlushPendingNotifications(Flush_Layout);
rv = FlushPendingNotifications(Flush_OnlyReflow);
}
else {
PostReflowEvent();