mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
2752bcb7fd
After calling FlushLayout(), PresShell::Destroy() might be called and we should consider PresShell and other resources will be no longer valid. Before this patch, AccessibleCaretManager and AccessibleCaret(s) are deallocated in PresShell::Destroy(). However FlushLayout() are all invoked in AccessibleCaretManager, we need to keep manager alive to clean up after PresShell::Destroy(). This patch makes AccessibleCaretManager live after PresShell::Destroy(), and use IsTerminated() to check whether PreShell is vaild after each FlushLayout() calls. Note that event though AccessibleCaretEventHub will be unref in PresShell::Destroy(), all the callers to AccessibleCaretEventHub's public methods already add a ref to AccessibleCaretEventHub. So we don't need to worry about AccessibleCaretEventHub and AccessibleCaretManager die immediately after PresShell::Destroy(). MozReview-Commit-ID: DDpXZ7v3zyo |
||
---|---|---|
.. | ||
base | ||
build | ||
doc | ||
forms | ||
generic | ||
inspector | ||
ipc | ||
mathml | ||
media | ||
printing | ||
reftests | ||
style | ||
svg | ||
tables | ||
tools | ||
xul | ||
moz.build |