Bug 1133083 - Fix build when APZCCallbackHelper logging is enabled. r=botond

This commit is contained in:
Kartikaya Gupta 2015-02-16 21:34:42 -05:00
parent d008ca3fc2
commit 1263c2a53c
2 changed files with 10 additions and 2 deletions

View File

@ -65,6 +65,14 @@ AppendToString(std::stringstream& aStream, const mozilla::gfx::PointTyped<T>& p,
aStream << pfx << p << sfx;
}
template<class T>
void
AppendToString(std::stringstream& aStream, const mozilla::gfx::IntPointTyped<T>& p,
const char* pfx="", const char* sfx="")
{
aStream << pfx << p << sfx;
}
void
AppendToString(std::stringstream& aStream, const nsIntRect& r,
const char* pfx="", const char* sfx="");

View File

@ -505,8 +505,8 @@ PrepareForSetTargetAPZCNotification(nsIWidget* aWidget,
if (dpElement) {
dpElement->Describe(dpElementDesc);
}
APZCCH_LOG("For input block %" PRIu64 " found scrollable element %p (%s)\n",
aInputBlockId, dpElement.get(),
APZCCH_LOG("For event at %s found scrollable element %p (%s)\n",
Stringify(aRefPoint).c_str(), dpElement.get(),
NS_LossyConvertUTF16toASCII(dpElementDesc).get());
bool guidIsValid = APZCCallbackHelper::GetOrCreateScrollIdentifiers(