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 | d2d0044421c02c89790a17555abdd20d40902076 (patch) | |
tree | c11c05d21ab3de50fb2726a7dffff32ffcbe5565 /layout/forms/nsComboboxControlFrame.cpp | |
parent | 99b534f23d9db2a6ef6a030aeb95e297cb887dd8 (diff) | |
download | UXP-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/nsComboboxControlFrame.cpp')
-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 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, |