summaryrefslogtreecommitdiff
path: root/layout/forms
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-12-13 13:54:51 +0100
committerwolfbeast <mcwerewolf@gmail.com>2018-12-13 13:54:51 +0100
commitd2d0044421c02c89790a17555abdd20d40902076 (patch)
treec11c05d21ab3de50fb2726a7dffff32ffcbe5565 /layout/forms
parent99b534f23d9db2a6ef6a030aeb95e297cb887dd8 (diff)
downloaduxp-d2d0044421c02c89790a17555abdd20d40902076.tar.gz
Avoid useless FrameNeedsReflow call.
Diffstat (limited to 'layout/forms')
-rw-r--r--layout/forms/nsComboboxControlFrame.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/layout/forms/nsComboboxControlFrame.cpp b/layout/forms/nsComboboxControlFrame.cpp
index f69198cc78..5a94389395 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,