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
parent 95efdb86e0
commit d527e663a1

View File

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