From d2d0044421c02c89790a17555abdd20d40902076 Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Thu, 13 Dec 2018 13:54:51 +0100 Subject: Avoid useless FrameNeedsReflow call. --- layout/forms/nsComboboxControlFrame.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'layout/forms/nsComboboxControlFrame.cpp') diff --git a/layout/forms/nsComboboxControlFrame.cpp b/layout/forms/nsComboboxControlFrame.cpp index f69198cc7..5a9438939 100644 --- a/layout/forms/nsComboboxControlFrame.cpp +++ b/layout/forms/nsComboboxControlFrame.cpp @@ -1040,6 +1040,9 @@ nsComboboxControlFrame::HandleRedisplayTextEvent() mRedisplayTextEvent.Forget(); ActuallyDisplayText(true); + if (!weakThis.IsAlive()) + return; + // XXXbz This should perhaps be eResize. Check. PresContext()->PresShell()->FrameNeedsReflow(mDisplayFrame, nsIPresShell::eStyleChange, -- cgit v1.2.3