Bug 1284422 part.9 Remove "ContentCache(InParent|InChild)?: " from log of ContentCache.cpp since the classes are not in same process under current design r=m_kato
MozReview-Commit-ID: LwDBBwfkZKx
This commit is contained in:
@@ -93,7 +93,7 @@ void
|
||||
ContentCacheInChild::Clear()
|
||||
{
|
||||
MOZ_LOG(sContentCacheLog, LogLevel::Info,
|
||||
("ContentCacheInChild: 0x%p Clear()", this));
|
||||
("0x%p Clear()", this));
|
||||
|
||||
mCompositionStart = UINT32_MAX;
|
||||
mText.Truncate();
|
||||
@@ -109,8 +109,7 @@ ContentCacheInChild::CacheAll(nsIWidget* aWidget,
|
||||
const IMENotification* aNotification)
|
||||
{
|
||||
MOZ_LOG(sContentCacheLog, LogLevel::Info,
|
||||
("ContentCacheInChild: 0x%p CacheAll(aWidget=0x%p, "
|
||||
"aNotification=%s)",
|
||||
("0x%p CacheAll(aWidget=0x%p, aNotification=%s)",
|
||||
this, aWidget, GetNotificationName(aNotification)));
|
||||
|
||||
if (NS_WARN_IF(!CacheText(aWidget, aNotification)) ||
|
||||
@@ -125,8 +124,7 @@ ContentCacheInChild::CacheSelection(nsIWidget* aWidget,
|
||||
const IMENotification* aNotification)
|
||||
{
|
||||
MOZ_LOG(sContentCacheLog, LogLevel::Info,
|
||||
("ContentCacheInChild: 0x%p CacheSelection(aWidget=0x%p, "
|
||||
"aNotification=%s)",
|
||||
("0x%p CacheSelection(aWidget=0x%p, aNotification=%s)",
|
||||
this, aWidget, GetNotificationName(aNotification)));
|
||||
|
||||
mCaret.Clear();
|
||||
@@ -137,7 +135,7 @@ ContentCacheInChild::CacheSelection(nsIWidget* aWidget,
|
||||
aWidget->DispatchEvent(&selection, status);
|
||||
if (NS_WARN_IF(!selection.mSucceeded)) {
|
||||
MOZ_LOG(sContentCacheLog, LogLevel::Error,
|
||||
("ContentCache: 0x%p CacheSelection(), FAILED, "
|
||||
("0x%p CacheSelection(), FAILED, "
|
||||
"couldn't retrieve the selected text", this));
|
||||
return false;
|
||||
}
|
||||
@@ -161,8 +159,7 @@ ContentCacheInChild::CacheCaret(nsIWidget* aWidget,
|
||||
const IMENotification* aNotification)
|
||||
{
|
||||
MOZ_LOG(sContentCacheLog, LogLevel::Info,
|
||||
("ContentCacheInChild: 0x%p CacheCaret(aWidget=0x%p, "
|
||||
"aNotification=%s)",
|
||||
("0x%p CacheCaret(aWidget=0x%p, aNotification=%s)",
|
||||
this, aWidget, GetNotificationName(aNotification)));
|
||||
|
||||
mCaret.Clear();
|
||||
@@ -180,7 +177,7 @@ ContentCacheInChild::CacheCaret(nsIWidget* aWidget,
|
||||
aWidget->DispatchEvent(&caretRect, status);
|
||||
if (NS_WARN_IF(!caretRect.mSucceeded)) {
|
||||
MOZ_LOG(sContentCacheLog, LogLevel::Error,
|
||||
("ContentCacheInChild: 0x%p CacheCaret(), FAILED, "
|
||||
("0x%p CacheCaret(), FAILED, "
|
||||
"couldn't retrieve the caret rect at offset=%u",
|
||||
this, mCaret.mOffset));
|
||||
mCaret.Clear();
|
||||
@@ -188,7 +185,7 @@ ContentCacheInChild::CacheCaret(nsIWidget* aWidget,
|
||||
}
|
||||
mCaret.mRect = caretRect.mReply.mRect;
|
||||
MOZ_LOG(sContentCacheLog, LogLevel::Info,
|
||||
("ContentCacheInChild: 0x%p CacheCaret(), Succeeded, "
|
||||
("0x%p CacheCaret(), Succeeded, "
|
||||
"mSelection={ mAnchor=%u, mFocus=%u, mWritingMode=%s }, "
|
||||
"mCaret={ mOffset=%u, mRect=%s }",
|
||||
this, mSelection.mAnchor, mSelection.mFocus,
|
||||
@@ -202,8 +199,7 @@ ContentCacheInChild::CacheEditorRect(nsIWidget* aWidget,
|
||||
const IMENotification* aNotification)
|
||||
{
|
||||
MOZ_LOG(sContentCacheLog, LogLevel::Info,
|
||||
("ContentCacheInChild: 0x%p CacheEditorRect(aWidget=0x%p, "
|
||||
"aNotification=%s)",
|
||||
("0x%p CacheEditorRect(aWidget=0x%p, aNotification=%s)",
|
||||
this, aWidget, GetNotificationName(aNotification)));
|
||||
|
||||
nsEventStatus status = nsEventStatus_eIgnore;
|
||||
@@ -211,13 +207,13 @@ ContentCacheInChild::CacheEditorRect(nsIWidget* aWidget,
|
||||
aWidget->DispatchEvent(&editorRectEvent, status);
|
||||
if (NS_WARN_IF(!editorRectEvent.mSucceeded)) {
|
||||
MOZ_LOG(sContentCacheLog, LogLevel::Error,
|
||||
("ContentCacheInChild: 0x%p CacheEditorRect(), FAILED, "
|
||||
("0x%p CacheEditorRect(), FAILED, "
|
||||
"couldn't retrieve the editor rect", this));
|
||||
return false;
|
||||
}
|
||||
mEditorRect = editorRectEvent.mReply.mRect;
|
||||
MOZ_LOG(sContentCacheLog, LogLevel::Info,
|
||||
("ContentCacheInChild: 0x%p CacheEditorRect(), Succeeded, "
|
||||
("0x%p CacheEditorRect(), Succeeded, "
|
||||
"mEditorRect=%s", this, GetRectText(mEditorRect).get()));
|
||||
return true;
|
||||
}
|
||||
@@ -227,8 +223,7 @@ ContentCacheInChild::CacheText(nsIWidget* aWidget,
|
||||
const IMENotification* aNotification)
|
||||
{
|
||||
MOZ_LOG(sContentCacheLog, LogLevel::Info,
|
||||
("ContentCacheInChild: 0x%p CacheText(aWidget=0x%p, "
|
||||
"aNotification=%s)",
|
||||
("0x%p CacheText(aWidget=0x%p, aNotification=%s)",
|
||||
this, aWidget, GetNotificationName(aNotification)));
|
||||
|
||||
nsEventStatus status = nsEventStatus_eIgnore;
|
||||
@@ -237,15 +232,13 @@ ContentCacheInChild::CacheText(nsIWidget* aWidget,
|
||||
aWidget->DispatchEvent(&queryText, status);
|
||||
if (NS_WARN_IF(!queryText.mSucceeded)) {
|
||||
MOZ_LOG(sContentCacheLog, LogLevel::Error,
|
||||
("ContentCacheInChild: 0x%p CacheText(), FAILED, "
|
||||
"couldn't retrieve whole text", this));
|
||||
("0x%p CacheText(), FAILED, couldn't retrieve whole text", this));
|
||||
mText.Truncate();
|
||||
return false;
|
||||
}
|
||||
mText = queryText.mReply.mString;
|
||||
MOZ_LOG(sContentCacheLog, LogLevel::Info,
|
||||
("ContentCacheInChild: 0x%p CacheText(), Succeeded, "
|
||||
"mText.Length()=%u", this, mText.Length()));
|
||||
("0x%p CacheText(), Succeeded, mText.Length()=%u", this, mText.Length()));
|
||||
|
||||
return CacheSelection(aWidget, aNotification);
|
||||
}
|
||||
@@ -281,8 +274,8 @@ ContentCacheInChild::CacheTextRects(nsIWidget* aWidget,
|
||||
const IMENotification* aNotification)
|
||||
{
|
||||
MOZ_LOG(sContentCacheLog, LogLevel::Info,
|
||||
("ContentCacheInChild: 0x%p CacheTextRects(aWidget=0x%p, "
|
||||
"aNotification=%s), mCaret={ mOffset=%u, IsValid()=%s }",
|
||||
("0x%p CacheTextRects(aWidget=0x%p, aNotification=%s), "
|
||||
"mCaret={ mOffset=%u, IsValid()=%s }",
|
||||
this, aWidget, GetNotificationName(aNotification), mCaret.mOffset,
|
||||
GetBoolName(mCaret.IsValid())));
|
||||
|
||||
@@ -324,7 +317,7 @@ ContentCacheInChild::CacheTextRects(nsIWidget* aWidget,
|
||||
LayoutDeviceIntRect charRect;
|
||||
if (NS_WARN_IF(!QueryCharRect(aWidget, mSelection.mAnchor, charRect))) {
|
||||
MOZ_LOG(sContentCacheLog, LogLevel::Error,
|
||||
("ContentCacheInChild: 0x%p CacheTextRects(), FAILED, "
|
||||
("0x%p CacheTextRects(), FAILED, "
|
||||
"couldn't retrieve text rect at anchor of selection (%u)",
|
||||
this, mSelection.mAnchor));
|
||||
}
|
||||
@@ -339,7 +332,7 @@ ContentCacheInChild::CacheTextRects(nsIWidget* aWidget,
|
||||
LayoutDeviceIntRect charRect;
|
||||
if (NS_WARN_IF(!QueryCharRect(aWidget, mSelection.mFocus, charRect))) {
|
||||
MOZ_LOG(sContentCacheLog, LogLevel::Error,
|
||||
("ContentCacheInChild: 0x%p CacheTextRects(), FAILED, "
|
||||
("0x%p CacheTextRects(), FAILED, "
|
||||
"couldn't retrieve text rect at focus of selection (%u)",
|
||||
this, mSelection.mFocus));
|
||||
}
|
||||
@@ -354,7 +347,7 @@ ContentCacheInChild::CacheTextRects(nsIWidget* aWidget,
|
||||
aWidget->DispatchEvent(&textRect, status);
|
||||
if (NS_WARN_IF(!textRect.mSucceeded)) {
|
||||
MOZ_LOG(sContentCacheLog, LogLevel::Error,
|
||||
("ContentCacheInChild: 0x%p CacheTextRects(), FAILED, "
|
||||
("0x%p CacheTextRects(), FAILED, "
|
||||
"couldn't retrieve text rect of whole selected text", this));
|
||||
} else {
|
||||
mSelection.mRect = textRect.mReply.mRect;
|
||||
@@ -371,7 +364,7 @@ ContentCacheInChild::CacheTextRects(nsIWidget* aWidget,
|
||||
LayoutDeviceIntRect charRect;
|
||||
if (NS_WARN_IF(!QueryCharRect(aWidget, 0, charRect))) {
|
||||
MOZ_LOG(sContentCacheLog, LogLevel::Error,
|
||||
("ContentCacheInChild: 0x%p CacheTextRects(), FAILED, "
|
||||
("0x%p CacheTextRects(), FAILED, "
|
||||
"couldn't retrieve first char rect", this));
|
||||
} else {
|
||||
mFirstCharRect = charRect;
|
||||
@@ -379,7 +372,7 @@ ContentCacheInChild::CacheTextRects(nsIWidget* aWidget,
|
||||
}
|
||||
|
||||
MOZ_LOG(sContentCacheLog, LogLevel::Info,
|
||||
("ContentCacheInChild: 0x%p CacheTextRects(), Succeeded, "
|
||||
("0x%p CacheTextRects(), Succeeded, "
|
||||
"mText.Length()=%u, mTextRectArray={ mStart=%u, mRects.Length()=%u }, "
|
||||
"mSelection={ mAnchor=%u, mAnchorCharRect=%s, mFocus=%u, "
|
||||
"mFocusCharRect=%s, mRect=%s }, mFirstCharRect=%s",
|
||||
@@ -399,7 +392,7 @@ ContentCacheInChild::SetSelection(nsIWidget* aWidget,
|
||||
const WritingMode& aWritingMode)
|
||||
{
|
||||
MOZ_LOG(sContentCacheLog, LogLevel::Info,
|
||||
("ContentCacheInChild: 0x%p SetSelection(aStartOffset=%u, "
|
||||
("0x%p SetSelection(aStartOffset=%u, "
|
||||
"aLength=%u, aReversed=%s, aWritingMode=%s), mText.Length()=%u",
|
||||
this, aStartOffset, aLength, GetBoolName(aReversed),
|
||||
GetWritingModeName(aWritingMode).get(), mText.Length()));
|
||||
@@ -452,7 +445,7 @@ ContentCacheInParent::AssignContent(const ContentCache& aOther,
|
||||
}
|
||||
|
||||
MOZ_LOG(sContentCacheLog, LogLevel::Info,
|
||||
("ContentCacheInParent: 0x%p AssignContent(aNotification=%s), "
|
||||
("0x%p AssignContent(aNotification=%s), "
|
||||
"Succeeded, mText.Length()=%u, mSelection={ mAnchor=%u, mFocus=%u, "
|
||||
"mWritingMode=%s, mAnchorCharRect=%s, mFocusCharRect=%s, mRect=%s }, "
|
||||
"mFirstCharRect=%s, mCaret={ mOffset=%u, mRect=%s }, mTextRectArray={ "
|
||||
@@ -510,12 +503,12 @@ ContentCacheInParent::HandleQueryContentEvent(WidgetQueryContentEvent& aEvent,
|
||||
switch (aEvent.mMessage) {
|
||||
case eQuerySelectedText:
|
||||
MOZ_LOG(sContentCacheLog, LogLevel::Info,
|
||||
("ContentCacheInParent: 0x%p HandleQueryContentEvent("
|
||||
("0x%p HandleQueryContentEvent("
|
||||
"aEvent={ mMessage=eQuerySelectedText }, aWidget=0x%p)",
|
||||
this, aWidget));
|
||||
if (aWidget->PluginHasFocus()) {
|
||||
MOZ_LOG(sContentCacheLog, LogLevel::Info,
|
||||
("ContentCacheInParent: 0x%p HandleQueryContentEvent(), "
|
||||
("0x%p HandleQueryContentEvent(), "
|
||||
"return emtpy selection becasue plugin has focus",
|
||||
this));
|
||||
aEvent.mSucceeded = true;
|
||||
@@ -528,7 +521,7 @@ ContentCacheInParent::HandleQueryContentEvent(WidgetQueryContentEvent& aEvent,
|
||||
// If content cache hasn't been initialized properly, make the query
|
||||
// failed.
|
||||
MOZ_LOG(sContentCacheLog, LogLevel::Error,
|
||||
("ContentCacheInParent: 0x%p HandleQueryContentEvent(), "
|
||||
("0x%p HandleQueryContentEvent(), "
|
||||
"FAILED because mSelection is not valid", this));
|
||||
return true;
|
||||
}
|
||||
@@ -538,7 +531,7 @@ ContentCacheInParent::HandleQueryContentEvent(WidgetQueryContentEvent& aEvent,
|
||||
} else {
|
||||
if (NS_WARN_IF(mSelection.EndOffset() > mText.Length())) {
|
||||
MOZ_LOG(sContentCacheLog, LogLevel::Error,
|
||||
("ContentCacheInParent: 0x%p HandleQueryContentEvent(), "
|
||||
("0x%p HandleQueryContentEvent(), "
|
||||
"FAILED because mSelection.EndOffset()=%u is larger than "
|
||||
"mText.Length()=%u",
|
||||
this, mSelection.EndOffset(), mText.Length()));
|
||||
@@ -551,7 +544,7 @@ ContentCacheInParent::HandleQueryContentEvent(WidgetQueryContentEvent& aEvent,
|
||||
aEvent.mReply.mHasSelection = true;
|
||||
aEvent.mReply.mWritingMode = mSelection.mWritingMode;
|
||||
MOZ_LOG(sContentCacheLog, LogLevel::Info,
|
||||
("ContentCacheInParent: 0x%p HandleQueryContentEvent(), "
|
||||
("0x%p HandleQueryContentEvent(), "
|
||||
"Succeeded, aEvent={ mReply={ mOffset=%u, mString=\"%s\", "
|
||||
"mReversed=%s, mHasSelection=%s, mWritingMode=%s } }",
|
||||
this, aEvent.mReply.mOffset,
|
||||
@@ -562,7 +555,7 @@ ContentCacheInParent::HandleQueryContentEvent(WidgetQueryContentEvent& aEvent,
|
||||
break;
|
||||
case eQueryTextContent: {
|
||||
MOZ_LOG(sContentCacheLog, LogLevel::Info,
|
||||
("ContentCacheInParent: 0x%p HandleQueryContentEvent("
|
||||
("0x%p HandleQueryContentEvent("
|
||||
"aEvent={ mMessage=eQueryTextContent, mInput={ mOffset=%u, "
|
||||
"mLength=%u } }, aWidget=0x%p), mText.Length()=%u",
|
||||
this, aEvent.mInput.mOffset,
|
||||
@@ -572,7 +565,7 @@ ContentCacheInParent::HandleQueryContentEvent(WidgetQueryContentEvent& aEvent,
|
||||
std::min(aEvent.mInput.EndOffset(), mText.Length());
|
||||
if (NS_WARN_IF(inputEndOffset < inputOffset)) {
|
||||
MOZ_LOG(sContentCacheLog, LogLevel::Error,
|
||||
("ContentCacheInParent: 0x%p HandleQueryContentEvent(), "
|
||||
("0x%p HandleQueryContentEvent(), "
|
||||
"FAILED because inputOffset=%u is larger than inputEndOffset=%u",
|
||||
this, inputOffset, inputEndOffset));
|
||||
return false;
|
||||
@@ -581,14 +574,14 @@ ContentCacheInParent::HandleQueryContentEvent(WidgetQueryContentEvent& aEvent,
|
||||
aEvent.mReply.mString =
|
||||
Substring(mText, inputOffset, inputEndOffset - inputOffset);
|
||||
MOZ_LOG(sContentCacheLog, LogLevel::Info,
|
||||
("ContentCacheInParent: 0x%p HandleQueryContentEvent(), "
|
||||
("0x%p HandleQueryContentEvent(), "
|
||||
"Succeeded, aEvent={ mReply={ mOffset=%u, mString.Length()=%u } }",
|
||||
this, aEvent.mReply.mOffset, aEvent.mReply.mString.Length()));
|
||||
break;
|
||||
}
|
||||
case eQueryTextRect:
|
||||
MOZ_LOG(sContentCacheLog, LogLevel::Info,
|
||||
("ContentCacheInParent: 0x%p HandleQueryContentEvent("
|
||||
("0x%p HandleQueryContentEvent("
|
||||
"aEvent={ mMessage=eQueryTextRect, mInput={ mOffset=%u, "
|
||||
"mLength=%u } }, aWidget=0x%p), mText.Length()=%u",
|
||||
this, aEvent.mInput.mOffset, aEvent.mInput.mLength, aWidget,
|
||||
@@ -597,7 +590,7 @@ ContentCacheInParent::HandleQueryContentEvent(WidgetQueryContentEvent& aEvent,
|
||||
// If content cache hasn't been initialized properly, make the query
|
||||
// failed.
|
||||
MOZ_LOG(sContentCacheLog, LogLevel::Error,
|
||||
("ContentCacheInParent: 0x%p HandleQueryContentEvent(), "
|
||||
("0x%p HandleQueryContentEvent(), "
|
||||
"FAILED because mSelection is not valid", this));
|
||||
return true;
|
||||
}
|
||||
@@ -612,7 +605,7 @@ ContentCacheInParent::HandleQueryContentEvent(WidgetQueryContentEvent& aEvent,
|
||||
aEvent.mReply.mRect))) {
|
||||
// XXX We don't have cache for this request.
|
||||
MOZ_LOG(sContentCacheLog, LogLevel::Error,
|
||||
("ContentCacheInParent: 0x%p HandleQueryContentEvent(), "
|
||||
("0x%p HandleQueryContentEvent(), "
|
||||
"FAILED to get union rect", this));
|
||||
return false;
|
||||
}
|
||||
@@ -622,7 +615,7 @@ ContentCacheInParent::HandleQueryContentEvent(WidgetQueryContentEvent& aEvent,
|
||||
isRelativeToInsertionPoint,
|
||||
aEvent.mReply.mRect))) {
|
||||
MOZ_LOG(sContentCacheLog, LogLevel::Error,
|
||||
("ContentCacheInParent: 0x%p HandleQueryContentEvent(), "
|
||||
("0x%p HandleQueryContentEvent(), "
|
||||
"FAILED to get caret rect", this));
|
||||
return false;
|
||||
}
|
||||
@@ -639,7 +632,7 @@ ContentCacheInParent::HandleQueryContentEvent(WidgetQueryContentEvent& aEvent,
|
||||
// XXX This may be wrong if storing range isn't in the selection range.
|
||||
aEvent.mReply.mWritingMode = mSelection.mWritingMode;
|
||||
MOZ_LOG(sContentCacheLog, LogLevel::Info,
|
||||
("ContentCacheInParent: 0x%p HandleQueryContentEvent(), "
|
||||
("0x%p HandleQueryContentEvent(), "
|
||||
"Succeeded, aEvent={ mReply={ mOffset=%u, mString=\"%s\", "
|
||||
"mWritingMode=%s, mRect=%s } }",
|
||||
this, aEvent.mReply.mOffset,
|
||||
@@ -649,7 +642,7 @@ ContentCacheInParent::HandleQueryContentEvent(WidgetQueryContentEvent& aEvent,
|
||||
break;
|
||||
case eQueryCaretRect:
|
||||
MOZ_LOG(sContentCacheLog, LogLevel::Info,
|
||||
("ContentCacheInParent: 0x%p HandleQueryContentEvent("
|
||||
("0x%p HandleQueryContentEvent("
|
||||
"aEvent={ mMessage=eQueryCaretRect, mInput={ mOffset=%u } }, "
|
||||
"aWidget=0x%p), mText.Length()=%u",
|
||||
this, aEvent.mInput.mOffset, aWidget, mText.Length()));
|
||||
@@ -657,7 +650,7 @@ ContentCacheInParent::HandleQueryContentEvent(WidgetQueryContentEvent& aEvent,
|
||||
// If content cache hasn't been initialized properly, make the query
|
||||
// failed.
|
||||
MOZ_LOG(sContentCacheLog, LogLevel::Error,
|
||||
("ContentCacheInParent: 0x%p HandleQueryContentEvent(), "
|
||||
("0x%p HandleQueryContentEvent(), "
|
||||
"FAILED because mSelection is not valid", this));
|
||||
return true;
|
||||
}
|
||||
@@ -669,24 +662,24 @@ ContentCacheInParent::HandleQueryContentEvent(WidgetQueryContentEvent& aEvent,
|
||||
isRelativeToInsertionPoint,
|
||||
aEvent.mReply.mRect))) {
|
||||
MOZ_LOG(sContentCacheLog, LogLevel::Error,
|
||||
("ContentCacheInParent: 0x%p HandleQueryContentEvent(), "
|
||||
("0x%p HandleQueryContentEvent(), "
|
||||
"FAILED to get caret rect", this));
|
||||
return false;
|
||||
}
|
||||
aEvent.mReply.mOffset = aEvent.mInput.mOffset;
|
||||
MOZ_LOG(sContentCacheLog, LogLevel::Info,
|
||||
("ContentCacheInParent: 0x%p HandleQueryContentEvent(), "
|
||||
("0x%p HandleQueryContentEvent(), "
|
||||
"Succeeded, aEvent={ mReply={ mOffset=%u, mRect=%s } }",
|
||||
this, aEvent.mReply.mOffset, GetRectText(aEvent.mReply.mRect).get()));
|
||||
break;
|
||||
case eQueryEditorRect:
|
||||
MOZ_LOG(sContentCacheLog, LogLevel::Info,
|
||||
("ContentCacheInParent: 0x%p HandleQueryContentEvent("
|
||||
("0x%p HandleQueryContentEvent("
|
||||
"aEvent={ mMessage=eQueryEditorRect }, aWidget=0x%p)",
|
||||
this, aWidget));
|
||||
aEvent.mReply.mRect = mEditorRect;
|
||||
MOZ_LOG(sContentCacheLog, LogLevel::Info,
|
||||
("ContentCacheInParent: 0x%p HandleQueryContentEvent(), "
|
||||
("0x%p HandleQueryContentEvent(), "
|
||||
"Succeeded, aEvent={ mReply={ mRect=%s } }",
|
||||
this, GetRectText(aEvent.mReply.mRect).get()));
|
||||
break;
|
||||
@@ -703,7 +696,7 @@ ContentCacheInParent::GetTextRect(uint32_t aOffset,
|
||||
LayoutDeviceIntRect& aTextRect) const
|
||||
{
|
||||
MOZ_LOG(sContentCacheLog, LogLevel::Info,
|
||||
("ContentCacheInParent: 0x%p GetTextRect(aOffset=%u, "
|
||||
("0x%p GetTextRect(aOffset=%u, "
|
||||
"aRoundToExistingOffset=%s), "
|
||||
"mTextRectArray={ mStart=%u, mRects.Length()=%u }, "
|
||||
"mSelection={ mAnchor=%u, mFocus=%u }",
|
||||
@@ -758,7 +751,7 @@ ContentCacheInParent::GetUnionTextRects(
|
||||
LayoutDeviceIntRect& aUnionTextRect) const
|
||||
{
|
||||
MOZ_LOG(sContentCacheLog, LogLevel::Info,
|
||||
("ContentCacheInParent: 0x%p GetUnionTextRects(aOffset=%u, "
|
||||
("0x%p GetUnionTextRects(aOffset=%u, "
|
||||
"aLength=%u, aRoundToExistingOffset=%s), mTextRectArray={ "
|
||||
"mStart=%u, mRects.Length()=%u }, "
|
||||
"mSelection={ mAnchor=%u, mFocus=%u }",
|
||||
@@ -835,7 +828,7 @@ ContentCacheInParent::GetCaretRect(uint32_t aOffset,
|
||||
LayoutDeviceIntRect& aCaretRect) const
|
||||
{
|
||||
MOZ_LOG(sContentCacheLog, LogLevel::Info,
|
||||
("ContentCacheInParent: 0x%p GetCaretRect(aOffset=%u, "
|
||||
("0x%p GetCaretRect(aOffset=%u, "
|
||||
"aRoundToExistingOffset=%s), "
|
||||
"mCaret={ mOffset=%u, mRect=%s, IsValid()=%s }, mTextRectArray={ "
|
||||
"mStart=%u, mRects.Length()=%u }, mSelection={ mAnchor=%u, mFocus=%u, "
|
||||
@@ -888,7 +881,7 @@ bool
|
||||
ContentCacheInParent::OnCompositionEvent(const WidgetCompositionEvent& aEvent)
|
||||
{
|
||||
MOZ_LOG(sContentCacheLog, LogLevel::Info,
|
||||
("ContentCacheInParent: 0x%p OnCompositionEvent(aEvent={ "
|
||||
("0x%p OnCompositionEvent(aEvent={ "
|
||||
"mMessage=%s, mData=\"%s\" (Length()=%u), mRanges->Length()=%u }), "
|
||||
"mPendingEventsNeedingAck=%u, mIsComposing=%s, "
|
||||
"mCommitStringByRequest=0x%p",
|
||||
@@ -937,7 +930,7 @@ ContentCacheInParent::OnSelectionEvent(
|
||||
const WidgetSelectionEvent& aSelectionEvent)
|
||||
{
|
||||
MOZ_LOG(sContentCacheLog, LogLevel::Info,
|
||||
("ContentCacheInParent: 0x%p OnSelectionEvent(aEvent={ "
|
||||
("0x%p OnSelectionEvent(aEvent={ "
|
||||
"mMessage=%s, mOffset=%u, mLength=%u, mReversed=%s, "
|
||||
"mExpandToClusterBoundary=%s, mUseNativeLineBreak=%s }), "
|
||||
"mPendingEventsNeedingAck=%u, mIsComposing=%s",
|
||||
@@ -959,7 +952,7 @@ ContentCacheInParent::OnEventNeedingAckHandled(nsIWidget* aWidget,
|
||||
// WidgetSelectionEvent.
|
||||
|
||||
MOZ_LOG(sContentCacheLog, LogLevel::Info,
|
||||
("ContentCacheInParent: 0x%p OnEventNeedingAckHandled(aWidget=0x%p, "
|
||||
("0x%p OnEventNeedingAckHandled(aWidget=0x%p, "
|
||||
"aMessage=%s), mPendingEventsNeedingAck=%u",
|
||||
this, aWidget, ToChar(aMessage), mPendingEventsNeedingAck));
|
||||
|
||||
@@ -977,7 +970,7 @@ ContentCacheInParent::RequestIMEToCommitComposition(nsIWidget* aWidget,
|
||||
nsAString& aCommittedString)
|
||||
{
|
||||
MOZ_LOG(sContentCacheLog, LogLevel::Info,
|
||||
("ContentCacheInParent: 0x%p RequestToCommitComposition(aWidget=%p, "
|
||||
("0x%p RequestToCommitComposition(aWidget=%p, "
|
||||
"aCancel=%s), mIsComposing=%s, mCommitStringByRequest=%p",
|
||||
this, aWidget, GetBoolName(aCancel), GetBoolName(mIsComposing),
|
||||
mCommitStringByRequest));
|
||||
@@ -988,7 +981,7 @@ ContentCacheInParent::RequestIMEToCommitComposition(nsIWidget* aWidget,
|
||||
IMEStateManager::GetTextCompositionFor(aWidget);
|
||||
if (NS_WARN_IF(!composition)) {
|
||||
MOZ_LOG(sContentCacheLog, LogLevel::Warning,
|
||||
(" ContentCacheInParent: 0x%p RequestToCommitComposition(), "
|
||||
(" 0x%p RequestToCommitComposition(), "
|
||||
"does nothing due to no composition", this));
|
||||
return false;
|
||||
}
|
||||
@@ -1001,7 +994,7 @@ ContentCacheInParent::RequestIMEToCommitComposition(nsIWidget* aWidget,
|
||||
mCommitStringByRequest = nullptr;
|
||||
|
||||
MOZ_LOG(sContentCacheLog, LogLevel::Info,
|
||||
(" ContentCacheInParent: 0x%p RequestToCommitComposition(), "
|
||||
(" 0x%p RequestToCommitComposition(), "
|
||||
"mIsComposing=%s, the composition %s committed synchronously",
|
||||
this, GetBoolName(mIsComposing),
|
||||
composition->Destroyed() ? "WAS" : "has NOT been"));
|
||||
|
||||
Reference in New Issue
Block a user