summaryrefslogtreecommitdiff
path: root/layout
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
commitf3b218f4a49ebc07b40639d6e2e64c04e99197d5 (patch)
treec11c05d21ab3de50fb2726a7dffff32ffcbe5565 /layout
parent2d7c432a37261d444dc2d49b09f9eee3f6c75e31 (diff)
downloaduxp-f3b218f4a49ebc07b40639d6e2e64c04e99197d5.tar.gz
Avoid useless FrameNeedsReflow call.
Diffstat (limited to 'layout')
-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,