зеркало из https://github.com/mozilla/gecko-dev.git
Bug 964626 Fix some nits of logging code in nsTextStore r=jimm
This commit is contained in:
Родитель
f4bc96a601
Коммит
b8a91c449d
|
@ -890,15 +890,13 @@ nsTextStore::RequestLock(DWORD dwLockFlags,
|
||||||
if (!mLock) {
|
if (!mLock) {
|
||||||
// put on lock
|
// put on lock
|
||||||
mLock = dwLockFlags & (~TS_LF_SYNC);
|
mLock = dwLockFlags & (~TS_LF_SYNC);
|
||||||
PR_LOG(sTextStoreLog, PR_LOG_DEBUG,
|
PR_LOG(sTextStoreLog, PR_LOG_ALWAYS,
|
||||||
("TSF: 0x%p Locking (%s) >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
|
("TSF: 0x%p Locking (%s) >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
|
||||||
">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
|
|
||||||
">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>",
|
">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>",
|
||||||
this, GetLockFlagNameStr(mLock).get()));
|
this, GetLockFlagNameStr(mLock).get()));
|
||||||
*phrSession = mSink->OnLockGranted(mLock);
|
*phrSession = mSink->OnLockGranted(mLock);
|
||||||
PR_LOG(sTextStoreLog, PR_LOG_ALWAYS,
|
PR_LOG(sTextStoreLog, PR_LOG_ALWAYS,
|
||||||
("TSF: 0x%p Unlocked (%s) <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
|
("TSF: 0x%p Unlocked (%s) <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
|
||||||
"<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
|
|
||||||
"<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<",
|
"<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<",
|
||||||
this, GetLockFlagNameStr(mLock).get()));
|
this, GetLockFlagNameStr(mLock).get()));
|
||||||
DidLockGranted();
|
DidLockGranted();
|
||||||
|
@ -907,19 +905,17 @@ nsTextStore::RequestLock(DWORD dwLockFlags,
|
||||||
mLockQueued = 0;
|
mLockQueued = 0;
|
||||||
PR_LOG(sTextStoreLog, PR_LOG_ALWAYS,
|
PR_LOG(sTextStoreLog, PR_LOG_ALWAYS,
|
||||||
("TSF: 0x%p Locking for the request in the queue (%s) >>>>>>>>>>>>>>"
|
("TSF: 0x%p Locking for the request in the queue (%s) >>>>>>>>>>>>>>"
|
||||||
">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
|
|
||||||
">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>",
|
">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>",
|
||||||
this, GetLockFlagNameStr(mLock).get()));
|
this, GetLockFlagNameStr(mLock).get()));
|
||||||
mSink->OnLockGranted(mLock);
|
mSink->OnLockGranted(mLock);
|
||||||
PR_LOG(sTextStoreLog, PR_LOG_ALWAYS,
|
PR_LOG(sTextStoreLog, PR_LOG_ALWAYS,
|
||||||
("TSF: 0x%p Unlocked (%s) <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
|
("TSF: 0x%p Unlocked (%s) <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
|
||||||
"<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"
|
|
||||||
"<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<",
|
"<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<",
|
||||||
this, GetLockFlagNameStr(mLock).get()));
|
this, GetLockFlagNameStr(mLock).get()));
|
||||||
DidLockGranted();
|
DidLockGranted();
|
||||||
}
|
}
|
||||||
mLock = 0;
|
mLock = 0;
|
||||||
PR_LOG(sTextStoreLog, PR_LOG_DEBUG,
|
PR_LOG(sTextStoreLog, PR_LOG_ALWAYS,
|
||||||
("TSF: 0x%p nsTextStore::RequestLock() succeeded: *phrSession=%s",
|
("TSF: 0x%p nsTextStore::RequestLock() succeeded: *phrSession=%s",
|
||||||
this, GetTextStoreReturnValueName(*phrSession)));
|
this, GetTextStoreReturnValueName(*phrSession)));
|
||||||
return S_OK;
|
return S_OK;
|
||||||
|
@ -1178,7 +1174,7 @@ nsTextStore::FlushPendingActions()
|
||||||
|
|
||||||
if (notifyTSFOfLayoutChange && mWidget && !mWidget->Destroyed()) {
|
if (notifyTSFOfLayoutChange && mWidget && !mWidget->Destroyed()) {
|
||||||
if (mSink) {
|
if (mSink) {
|
||||||
PR_LOG(sTextStoreLog, PR_LOG_DEBUG,
|
PR_LOG(sTextStoreLog, PR_LOG_ALWAYS,
|
||||||
("TSF: 0x%p nsTextStore::FlushPendingActions(), "
|
("TSF: 0x%p nsTextStore::FlushPendingActions(), "
|
||||||
"calling ITextStoreACPSink::OnLayoutChange()...", this));
|
"calling ITextStoreACPSink::OnLayoutChange()...", this));
|
||||||
mSink->OnLayoutChange(TS_LC_CHANGE, TEXTSTORE_DEFAULT_VIEW);
|
mSink->OnLayoutChange(TS_LC_CHANGE, TEXTSTORE_DEFAULT_VIEW);
|
||||||
|
@ -1191,7 +1187,7 @@ nsTextStore::FlushPendingActions()
|
||||||
mContext->QueryInterface(IID_ITfContextOwnerServices,
|
mContext->QueryInterface(IID_ITfContextOwnerServices,
|
||||||
getter_AddRefs(service));
|
getter_AddRefs(service));
|
||||||
if (service) {
|
if (service) {
|
||||||
PR_LOG(sTextStoreLog, PR_LOG_DEBUG,
|
PR_LOG(sTextStoreLog, PR_LOG_ALWAYS,
|
||||||
("TSF: 0x%p nsTextStore::FlushPendingActions(), "
|
("TSF: 0x%p nsTextStore::FlushPendingActions(), "
|
||||||
"calling ITfContextOwnerServices::OnLayoutChange()...", this));
|
"calling ITfContextOwnerServices::OnLayoutChange()...", this));
|
||||||
service->OnLayoutChange();
|
service->OnLayoutChange();
|
||||||
|
@ -1200,6 +1196,9 @@ nsTextStore::FlushPendingActions()
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mNotifySelectionChange && mSink && mWidget && !mWidget->Destroyed()) {
|
if (mNotifySelectionChange && mSink && mWidget && !mWidget->Destroyed()) {
|
||||||
|
PR_LOG(sTextStoreLog, PR_LOG_ALWAYS,
|
||||||
|
("TSF: 0x%p nsTextStore::FlushPendingActions(), "
|
||||||
|
"calling ITextStoreACPSink::OnSelectionChange()...", this));
|
||||||
mSink->OnSelectionChange();
|
mSink->OnSelectionChange();
|
||||||
}
|
}
|
||||||
mNotifySelectionChange = false;
|
mNotifySelectionChange = false;
|
||||||
|
@ -1749,9 +1748,12 @@ nsTextStore::SetSelectionInternal(const TS_SELECTION_ACP* pSelection,
|
||||||
bool aDispatchTextEvent)
|
bool aDispatchTextEvent)
|
||||||
{
|
{
|
||||||
PR_LOG(sTextStoreLog, PR_LOG_DEBUG,
|
PR_LOG(sTextStoreLog, PR_LOG_DEBUG,
|
||||||
("TSF: 0x%p nsTextStore::SetSelectionInternal(pSelection=%ld-%ld, "
|
("TSF: 0x%p nsTextStore::SetSelectionInternal(pSelection={ "
|
||||||
"aDispatchTextEvent=%s), IsComposing()=%s",
|
"acpStart=%ld, acpEnd=%ld, style={ ase=%s, fInterimChar=%s} }, "
|
||||||
|
"aDispatchTextEvent=%s), mComposition.IsComposing()=%s",
|
||||||
this, pSelection->acpStart, pSelection->acpEnd,
|
this, pSelection->acpStart, pSelection->acpEnd,
|
||||||
|
GetActiveSelEndName(pSelection->style.ase),
|
||||||
|
GetBoolName(pSelection->style.fInterimChar),
|
||||||
GetBoolName(aDispatchTextEvent),
|
GetBoolName(aDispatchTextEvent),
|
||||||
GetBoolName(mComposition.IsComposing())));
|
GetBoolName(mComposition.IsComposing())));
|
||||||
|
|
||||||
|
@ -1812,8 +1814,15 @@ nsTextStore::SetSelection(ULONG ulCount,
|
||||||
const TS_SELECTION_ACP *pSelection)
|
const TS_SELECTION_ACP *pSelection)
|
||||||
{
|
{
|
||||||
PR_LOG(sTextStoreLog, PR_LOG_ALWAYS,
|
PR_LOG(sTextStoreLog, PR_LOG_ALWAYS,
|
||||||
("TSF: 0x%p nsTextStore::SetSelection(ulCount=%lu)",
|
("TSF: 0x%p nsTextStore::SetSelection(ulCount=%lu, pSelection=%p { "
|
||||||
this, ulCount));
|
"acpStart=%ld, acpEnd=%ld, style={ ase=%s, fInterimChar=%s } }), "
|
||||||
|
"mComposition.IsComposing()=%s",
|
||||||
|
this, ulCount, pSelection,
|
||||||
|
pSelection ? pSelection->acpStart : 0,
|
||||||
|
pSelection ? pSelection->acpEnd : 0,
|
||||||
|
pSelection ? GetActiveSelEndName(pSelection->style.ase) : "",
|
||||||
|
pSelection ? GetBoolName(pSelection->style.fInterimChar) : "",
|
||||||
|
GetBoolName(mComposition.IsComposing())));
|
||||||
|
|
||||||
if (!IsReadWriteLocked()) {
|
if (!IsReadWriteLocked()) {
|
||||||
PR_LOG(sTextStoreLog, PR_LOG_ERROR,
|
PR_LOG(sTextStoreLog, PR_LOG_ERROR,
|
||||||
|
@ -1861,7 +1870,7 @@ nsTextStore::GetText(LONG acpStart,
|
||||||
("TSF: 0x%p nsTextStore::GetText(acpStart=%ld, acpEnd=%ld, pchPlain=0x%p, "
|
("TSF: 0x%p nsTextStore::GetText(acpStart=%ld, acpEnd=%ld, pchPlain=0x%p, "
|
||||||
"cchPlainReq=%lu, pcchPlainOut=0x%p, prgRunInfo=0x%p, ulRunInfoReq=%lu, "
|
"cchPlainReq=%lu, pcchPlainOut=0x%p, prgRunInfo=0x%p, ulRunInfoReq=%lu, "
|
||||||
"pulRunInfoOut=0x%p, pacpNext=0x%p), mComposition={ mStart=%ld, "
|
"pulRunInfoOut=0x%p, pacpNext=0x%p), mComposition={ mStart=%ld, "
|
||||||
"mString.Length()=%lu IsComposing()=%s }",
|
"mString.Length()=%lu, IsComposing()=%s }",
|
||||||
this, acpStart, acpEnd, pchPlain, cchPlainReq, pcchPlainOut,
|
this, acpStart, acpEnd, pchPlain, cchPlainReq, pcchPlainOut,
|
||||||
prgRunInfo, ulRunInfoReq, pulRunInfoOut, pacpNext,
|
prgRunInfo, ulRunInfoReq, pulRunInfoOut, pacpNext,
|
||||||
mComposition.mStart, mComposition.mString.Length(),
|
mComposition.mStart, mComposition.mString.Length(),
|
||||||
|
@ -1960,8 +1969,9 @@ nsTextStore::SetText(DWORD dwFlags,
|
||||||
TS_TEXTCHANGE *pChange)
|
TS_TEXTCHANGE *pChange)
|
||||||
{
|
{
|
||||||
PR_LOG(sTextStoreLog, PR_LOG_ALWAYS,
|
PR_LOG(sTextStoreLog, PR_LOG_ALWAYS,
|
||||||
("TSF: 0x%p nsTextStore::SetText(dwFlags=%s, acpStart=%ld, acpEnd=%ld, "
|
("TSF: 0x%p nsTextStore::SetText(dwFlags=%s, acpStart=%ld, "
|
||||||
"pchText=0x%p \"%s\", cch=%lu, pChange=0x%p), IsComposing()=%s",
|
"acpEnd=%ld, pchText=0x%p \"%s\", cch=%lu, pChange=0x%p), "
|
||||||
|
"mComposition.IsComposing()=%s",
|
||||||
this, dwFlags == TS_ST_CORRECTION ? "TS_ST_CORRECTION" :
|
this, dwFlags == TS_ST_CORRECTION ? "TS_ST_CORRECTION" :
|
||||||
"not-specified",
|
"not-specified",
|
||||||
acpStart, acpEnd, pchText,
|
acpStart, acpEnd, pchText,
|
||||||
|
@ -2106,9 +2116,9 @@ nsTextStore::ProcessScopeRequest(DWORD dwFlags,
|
||||||
const TS_ATTRID *paFilterAttrs)
|
const TS_ATTRID *paFilterAttrs)
|
||||||
{
|
{
|
||||||
PR_LOG(sTextStoreLog, PR_LOG_ALWAYS,
|
PR_LOG(sTextStoreLog, PR_LOG_ALWAYS,
|
||||||
("TSF: 0x%p nsTextStore::ProcessScopeRequest() called "
|
("TSF: 0x%p nsTextStore::ProcessScopeRequest(dwFlags=%s, "
|
||||||
"cFilterAttrs=%d dwFlags=%s", this, cFilterAttrs,
|
"cFilterAttrs=%ld",
|
||||||
GetFindFlagName(dwFlags).get()));
|
this, GetFindFlagName(dwFlags).get(), cFilterAttrs));
|
||||||
|
|
||||||
// This is a little weird! RequestSupportedAttrs gives us advanced notice
|
// This is a little weird! RequestSupportedAttrs gives us advanced notice
|
||||||
// of a support query via RetrieveRequestedAttrs for a specific attribute.
|
// of a support query via RetrieveRequestedAttrs for a specific attribute.
|
||||||
|
@ -2122,7 +2132,8 @@ nsTextStore::ProcessScopeRequest(DWORD dwFlags,
|
||||||
for (uint32_t idx = 0; idx < cFilterAttrs; ++idx) {
|
for (uint32_t idx = 0; idx < cFilterAttrs; ++idx) {
|
||||||
PR_LOG(sTextStoreLog, PR_LOG_ALWAYS,
|
PR_LOG(sTextStoreLog, PR_LOG_ALWAYS,
|
||||||
("TSF: 0x%p nsTextStore::ProcessScopeRequest() "
|
("TSF: 0x%p nsTextStore::ProcessScopeRequest() "
|
||||||
"requested attr=%s", this, GetCLSIDNameStr(paFilterAttrs[idx]).get()));
|
"requested attr=%s",
|
||||||
|
this, GetCLSIDNameStr(paFilterAttrs[idx]).get()));
|
||||||
if (IsEqualGUID(paFilterAttrs[idx], GUID_PROP_INPUTSCOPE)) {
|
if (IsEqualGUID(paFilterAttrs[idx], GUID_PROP_INPUTSCOPE)) {
|
||||||
PR_LOG(sTextStoreLog, PR_LOG_ALWAYS,
|
PR_LOG(sTextStoreLog, PR_LOG_ALWAYS,
|
||||||
("TSF: 0x%p nsTextStore::ProcessScopeRequest() "
|
("TSF: 0x%p nsTextStore::ProcessScopeRequest() "
|
||||||
|
@ -2146,9 +2157,9 @@ nsTextStore::RequestSupportedAttrs(DWORD dwFlags,
|
||||||
const TS_ATTRID *paFilterAttrs)
|
const TS_ATTRID *paFilterAttrs)
|
||||||
{
|
{
|
||||||
PR_LOG(sTextStoreLog, PR_LOG_ALWAYS,
|
PR_LOG(sTextStoreLog, PR_LOG_ALWAYS,
|
||||||
("TSF: 0x%p nsTextStore::RequestSupportedAttrs() called "
|
("TSF: 0x%p nsTextStore::RequestSupportedAttrs(dwFlags=%s, "
|
||||||
"cFilterAttrs=%d dwFlags=%s", this, cFilterAttrs,
|
"cFilterAttrs=%lu)",
|
||||||
GetFindFlagName(dwFlags).get()));
|
this, GetFindFlagName(dwFlags).get(), cFilterAttrs));
|
||||||
|
|
||||||
return ProcessScopeRequest(dwFlags, cFilterAttrs, paFilterAttrs);
|
return ProcessScopeRequest(dwFlags, cFilterAttrs, paFilterAttrs);
|
||||||
}
|
}
|
||||||
|
@ -2160,9 +2171,9 @@ nsTextStore::RequestAttrsAtPosition(LONG acpPos,
|
||||||
DWORD dwFlags)
|
DWORD dwFlags)
|
||||||
{
|
{
|
||||||
PR_LOG(sTextStoreLog, PR_LOG_ALWAYS,
|
PR_LOG(sTextStoreLog, PR_LOG_ALWAYS,
|
||||||
("TSF: 0x%p nsTextStore::RequestAttrsAtPosition() called "
|
("TSF: 0x%p nsTextStore::RequestAttrsAtPosition(acpPos=%ld, "
|
||||||
"acpPos=%d cFilterAttrs=%d dwFlags=%s", this, acpPos, cFilterAttrs,
|
"cFilterAttrs=%lu, dwFlags=%s)",
|
||||||
GetFindFlagName(dwFlags).get()));
|
this, acpPos, cFilterAttrs, GetFindFlagName(dwFlags).get()));
|
||||||
|
|
||||||
return ProcessScopeRequest(dwFlags | TS_ATTR_FIND_WANT_VALUE,
|
return ProcessScopeRequest(dwFlags | TS_ATTR_FIND_WANT_VALUE,
|
||||||
cFilterAttrs, paFilterAttrs);
|
cFilterAttrs, paFilterAttrs);
|
||||||
|
@ -2175,8 +2186,10 @@ nsTextStore::RequestAttrsTransitioningAtPosition(LONG acpPos,
|
||||||
DWORD dwFlags)
|
DWORD dwFlags)
|
||||||
{
|
{
|
||||||
PR_LOG(sTextStoreLog, PR_LOG_ALWAYS,
|
PR_LOG(sTextStoreLog, PR_LOG_ALWAYS,
|
||||||
("TSF: 0x%p nsTextStore::RequestAttrsTransitioningAtPosition() called "
|
("TSF: 0x%p nsTextStore::RequestAttrsTransitioningAtPosition("
|
||||||
"but not supported (S_OK)", this));
|
"acpPos=%ld, cFilterAttrs=%lu, dwFlags=%s) called but not supported "
|
||||||
|
"(S_OK)",
|
||||||
|
this, acpPos, cFilterAttrs, GetFindFlagName(dwFlags).get()));
|
||||||
|
|
||||||
// no per character attributes defined
|
// no per character attributes defined
|
||||||
return S_OK;
|
return S_OK;
|
||||||
|
@ -2194,7 +2207,7 @@ nsTextStore::FindNextAttrTransition(LONG acpStart,
|
||||||
{
|
{
|
||||||
if (!pacpNext || !pfFound || !plFoundOffset) {
|
if (!pacpNext || !pfFound || !plFoundOffset) {
|
||||||
PR_LOG(sTextStoreLog, PR_LOG_ERROR,
|
PR_LOG(sTextStoreLog, PR_LOG_ERROR,
|
||||||
("TSF: 0x%p nsTextStore::FindNextAttrTransition() FAILED due to "
|
("TSF: 0x%p nsTextStore::FindNextAttrTransition() FAILED due to "
|
||||||
"null argument", this));
|
"null argument", this));
|
||||||
return E_INVALIDARG;
|
return E_INVALIDARG;
|
||||||
}
|
}
|
||||||
|
@ -2816,7 +2829,7 @@ nsTextStore::RecordCompositionStartAction(ITfCompositionView* pComposition,
|
||||||
|
|
||||||
currentContent.StartComposition(pComposition, *action, aPreserveSelection);
|
currentContent.StartComposition(pComposition, *action, aPreserveSelection);
|
||||||
|
|
||||||
PR_LOG(sTextStoreLog, PR_LOG_DEBUG,
|
PR_LOG(sTextStoreLog, PR_LOG_ALWAYS,
|
||||||
("TSF: 0x%p nsTextStore::RecordCompositionStartAction() succeeded: "
|
("TSF: 0x%p nsTextStore::RecordCompositionStartAction() succeeded: "
|
||||||
"mComposition={ mStart=%ld, mString.Length()=%ld, "
|
"mComposition={ mStart=%ld, mString.Length()=%ld, "
|
||||||
"mSelection={ acpStart=%ld, acpEnd=%ld, style.ase=%s, "
|
"mSelection={ acpStart=%ld, acpEnd=%ld, style.ase=%s, "
|
||||||
|
@ -3094,7 +3107,7 @@ nsTextStore::OnFocusChange(bool aGotFocus,
|
||||||
IMEState::Enabled aIMEEnabled)
|
IMEState::Enabled aIMEEnabled)
|
||||||
{
|
{
|
||||||
PR_LOG(sTextStoreLog, PR_LOG_DEBUG,
|
PR_LOG(sTextStoreLog, PR_LOG_DEBUG,
|
||||||
("TSF: nsTextStore::OnFocusChange(aGotFocus=%s, "
|
("TSF: nsTextStore::OnFocusChange(aGotFocus=%s, "
|
||||||
"aFocusedWidget=0x%p, aIMEEnabled=%s), sTsfThreadMgr=0x%p, "
|
"aFocusedWidget=0x%p, aIMEEnabled=%s), sTsfThreadMgr=0x%p, "
|
||||||
"sTsfTextStore=0x%p",
|
"sTsfTextStore=0x%p",
|
||||||
GetBoolName(aGotFocus), aFocusedWidget,
|
GetBoolName(aGotFocus), aFocusedWidget,
|
||||||
|
@ -3165,7 +3178,7 @@ nsTextStore::OnTextChangeInternal(uint32_t aStart,
|
||||||
uint32_t aNewEnd)
|
uint32_t aNewEnd)
|
||||||
{
|
{
|
||||||
PR_LOG(sTextStoreLog, PR_LOG_DEBUG,
|
PR_LOG(sTextStoreLog, PR_LOG_DEBUG,
|
||||||
("TSF: 0x%p nsTextStore::OnTextChangeInternal(aStart=%lu, "
|
("TSF: 0x%p nsTextStore::OnTextChangeInternal(aStart=%lu, "
|
||||||
"aOldEnd=%lu, aNewEnd=%lu), mSink=0x%p, mSinkMask=%s, "
|
"aOldEnd=%lu, aNewEnd=%lu), mSink=0x%p, mSinkMask=%s, "
|
||||||
"mComposition.IsComposing()=%s",
|
"mComposition.IsComposing()=%s",
|
||||||
this, aStart, aOldEnd, aNewEnd, mSink.get(),
|
this, aStart, aOldEnd, aNewEnd, mSink.get(),
|
||||||
|
@ -3221,7 +3234,7 @@ nsresult
|
||||||
nsTextStore::OnSelectionChangeInternal(void)
|
nsTextStore::OnSelectionChangeInternal(void)
|
||||||
{
|
{
|
||||||
PR_LOG(sTextStoreLog, PR_LOG_DEBUG,
|
PR_LOG(sTextStoreLog, PR_LOG_DEBUG,
|
||||||
("TSF: 0x%p nsTextStore::OnSelectionChangeInternal(), "
|
("TSF: 0x%p nsTextStore::OnSelectionChangeInternal(), "
|
||||||
"mSink=0x%p, mSinkMask=%s, mIsRecordingActionsWithoutLock=%s, "
|
"mSink=0x%p, mSinkMask=%s, mIsRecordingActionsWithoutLock=%s, "
|
||||||
"mComposition.IsComposing()=%s",
|
"mComposition.IsComposing()=%s",
|
||||||
this, mSink.get(), GetSinkMaskNameStr(mSinkMask).get(),
|
this, mSink.get(), GetSinkMaskNameStr(mSinkMask).get(),
|
||||||
|
@ -3292,7 +3305,7 @@ nsTextStore::CreateNativeCaret()
|
||||||
}
|
}
|
||||||
|
|
||||||
PR_LOG(sTextStoreLog, PR_LOG_DEBUG,
|
PR_LOG(sTextStoreLog, PR_LOG_DEBUG,
|
||||||
("TSF: 0x%p nsTextStore::CreateNativeCaret(), "
|
("TSF: 0x%p nsTextStore::CreateNativeCaret(), "
|
||||||
"mComposition.IsComposing()=%s",
|
"mComposition.IsComposing()=%s",
|
||||||
this, GetBoolName(mComposition.IsComposing())));
|
this, GetBoolName(mComposition.IsComposing())));
|
||||||
|
|
||||||
|
@ -3443,7 +3456,7 @@ void
|
||||||
nsTextStore::CommitCompositionInternal(bool aDiscard)
|
nsTextStore::CommitCompositionInternal(bool aDiscard)
|
||||||
{
|
{
|
||||||
PR_LOG(sTextStoreLog, PR_LOG_DEBUG,
|
PR_LOG(sTextStoreLog, PR_LOG_DEBUG,
|
||||||
("TSF: 0x%p nsTextStore::CommitCompositionInternal(aDiscard=%s), "
|
("TSF: 0x%p nsTextStore::CommitCompositionInternal(aDiscard=%s), "
|
||||||
"mSink=0x%p, mContext=0x%p, mComposition.mView=0x%p, "
|
"mSink=0x%p, mContext=0x%p, mComposition.mView=0x%p, "
|
||||||
"mComposition.mString=\"%s\"",
|
"mComposition.mString=\"%s\"",
|
||||||
this, GetBoolName(aDiscard), mSink.get(), mContext.get(),
|
this, GetBoolName(aDiscard), mSink.get(), mContext.get(),
|
||||||
|
@ -3684,7 +3697,7 @@ nsTextStore::GetTIPDescription(REFCLSID aTextService, LANGID aLangID,
|
||||||
&description);
|
&description);
|
||||||
if (FAILED(hr)) {
|
if (FAILED(hr)) {
|
||||||
PR_LOG(sTextStoreLog, PR_LOG_ERROR,
|
PR_LOG(sTextStoreLog, PR_LOG_ERROR,
|
||||||
("TSF: nsTextStore::InitActiveTIPDescription() FAILED due to "
|
("TSF: nsTextStore::InitActiveTIPDescription() FAILED due to "
|
||||||
"GetLanguageProfileDescription() failure, hr=0x%08X", hr));
|
"GetLanguageProfileDescription() failure, hr=0x%08X", hr));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -4122,7 +4135,7 @@ nsTextStore::CurrentKeyboardLayoutHasIME()
|
||||||
// keyboard layout has IME.
|
// keyboard layout has IME.
|
||||||
if (IsVistaOrLater()) {
|
if (IsVistaOrLater()) {
|
||||||
PR_LOG(sTextStoreLog, PR_LOG_ERROR,
|
PR_LOG(sTextStoreLog, PR_LOG_ERROR,
|
||||||
("TSF: nsTextStore::CurrentKeyboardLayoutHasIME() FAILED to query "
|
("TSF: nsTextStore::CurrentKeyboardLayoutHasIME() FAILED to query "
|
||||||
"ITfInputProcessorProfileMgr"));
|
"ITfInputProcessorProfileMgr"));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -4139,7 +4152,7 @@ nsTextStore::CurrentKeyboardLayoutHasIME()
|
||||||
}
|
}
|
||||||
if (FAILED(hr)) {
|
if (FAILED(hr)) {
|
||||||
PR_LOG(sTextStoreLog, PR_LOG_ERROR,
|
PR_LOG(sTextStoreLog, PR_LOG_ERROR,
|
||||||
("TSF: nsTextStore::CurrentKeyboardLayoutHasIME() FAILED to retreive "
|
("TSF: nsTextStore::CurrentKeyboardLayoutHasIME() FAILED to retreive "
|
||||||
"active profile"));
|
"active profile"));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче