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