mirror of
https://github.com/classilla/tenfourfox.git
synced 2025-01-01 06:33:22 +00:00
#439: M1368852
This commit is contained in:
parent
9d4ebbc228
commit
607c3038cb
@ -951,7 +951,16 @@ public:
|
||||
// Flush frames, to ensure any pending display:none changes are made.
|
||||
// Note it can be unsafe to flush if we've destroyed the presentation
|
||||
// for some other reason, like if we're shutting down.
|
||||
if (!mPresShell->IsDestroying()) {
|
||||
//
|
||||
// But avoid the flush if we know for sure we're away, like when we're out
|
||||
// of the document already.
|
||||
//
|
||||
// FIXME(emilio): This could still be a perf footgun when removing lots of
|
||||
// siblings where each of them cause the reframe of an ancestor which happen
|
||||
// to contain a subdocument.
|
||||
//
|
||||
// We should find some way to avoid that!
|
||||
if (!mPresShell->IsDestroying() && mFrameElement->IsInComposedDoc()) {
|
||||
mPresShell->FlushPendingNotifications(Flush_Frames);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user