diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-12-13 13:54:51 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-12-13 13:54:51 +0100 |
commit | f3b218f4a49ebc07b40639d6e2e64c04e99197d5 (patch) | |
tree | c11c05d21ab3de50fb2726a7dffff32ffcbe5565 /layout | |
parent | 2d7c432a37261d444dc2d49b09f9eee3f6c75e31 (diff) | |
download | uxp-f3b218f4a49ebc07b40639d6e2e64c04e99197d5.tar.gz |
Avoid useless FrameNeedsReflow call.
Diffstat (limited to 'layout')
-rw-r--r-- | layout/forms/nsComboboxControlFrame.cpp | 3 |
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, |