Bug 797520; improve OMTA logging. r=cjones

--HG--
extra : rebase_source : 25adf63183d996433b9b6b68ccf195820f662ca1
This commit is contained in:
Nicholas Cameron 2012-12-12 10:12:47 +13:00
Родитель daf935be79
Коммит daa58006c6
1 изменённых файлов: 3 добавлений и 2 удалений

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

@ -282,8 +282,8 @@ CommonElementAnimationData::CanAnimatePropertyOnCompositor(const dom::Element *a
if (shouldLog) { if (shouldLog) {
nsCString message; nsCString message;
message.AppendLiteral("Performance warning: Async animation of geometric property '"); message.AppendLiteral("Performance warning: Async animation of geometric property '");
message.Append(aProperty); message.Append(nsCSSProps::GetStringValue(aProperty));
message.AppendLiteral(" is disabled"); message.AppendLiteral("' is disabled");
LogAsyncAnimationFailure(message, aElement); LogAsyncAnimationFailure(message, aElement);
} }
return false; return false;
@ -350,6 +350,7 @@ CommonElementAnimationData::LogAsyncAnimationFailure(nsCString& aMessage,
} }
aMessage.AppendLiteral("]"); aMessage.AppendLiteral("]");
} }
aMessage.AppendLiteral("\n");
printf_stderr(aMessage.get()); printf_stderr(aMessage.get());
} }