зеркало из https://github.com/mozilla/gecko-dev.git
Bug 750146 - Do not call back on the nsTextEditorState if the restore selection event has been revoked; r=bzbarsky
--HG-- extra : rebase_source : b37d85e9c2e628b15b23bbedc2eee74d66d8fa46
This commit is contained in:
Родитель
bf73ed7120
Коммит
2eacf185a5
|
@ -84,6 +84,10 @@ public:
|
|||
}
|
||||
|
||||
NS_IMETHOD Run() {
|
||||
if (!mTextEditorState) {
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
if (mFrame) {
|
||||
// SetSelectionRange leads to Selection::AddRange which flushes Layout -
|
||||
// need to block script to avoid nested PrepareEditor calls (bug 642800).
|
||||
|
@ -105,6 +109,7 @@ public:
|
|||
// Let the text editor tell us we're no longer relevant - avoids use of nsWeakFrame
|
||||
void Revoke() {
|
||||
mFrame = nsnull;
|
||||
mTextEditorState = nsnull;
|
||||
}
|
||||
|
||||
private:
|
||||
|
|
Загрузка…
Ссылка в новой задаче