Bug 1181714 nsTextStore should store previous focused document manager until new document manager actually gets focus r=m_kato

This commit is contained in:
Masayuki Nakano 2015-07-09 17:30:07 +09:00
Родитель 04543b0f55
Коммит af7ad0b0ba
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -4176,9 +4176,10 @@ nsTextStore::OnFocusChange(bool aGotFocus,
return NS_ERROR_NOT_AVAILABLE;
}
nsRefPtr<ITfDocumentMgr> prevFocusedDocumentMgr;
// If currently sEnableTextStore has focus, notifies TSF of losing focus.
if (ThinksHavingFocus()) {
nsRefPtr<ITfDocumentMgr> prevFocusedDocumentMgr;
DebugOnly<HRESULT> hr =
sThreadMgr->AssociateFocus(
sEnabledTextStore->mWidget->GetWindowHandle(),