summaryrefslogtreecommitdiffstats
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
UXP-d2d0044421c02c89790a17555abdd20d40902076.tar.gz
UXP-d2d0044421c02c89790a17555abdd20d40902076.tar.lz
UXP-d2d0044421c02c89790a17555abdd20d40902076.tar.xz
UXP-d2d0044421c02c89790a17555abdd20d40902076.zip
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 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,