Fix 2 logging calls I added today to also log the element and it's id, no bug, r=me

This commit is contained in:
David Zbarsky 2012-08-26 00:14:31 -04:00
parent c540b78e4c
commit 17aa3f57ac

View File

@ -3340,7 +3340,8 @@ nsDisplayOpacity::CanUseAsyncAnimations(nsDisplayListBuilder* aBuilder)
if (nsLayoutUtils::IsAnimationLoggingEnabled()) {
nsCString message;
message.AppendLiteral("Performance warning: Async animation disabled because frame was not marked active for opacity animation");
CommonElementAnimationData::LogAsyncAnimationFailure(message);
CommonElementAnimationData::LogAsyncAnimationFailure(message,
GetUnderlyingFrame()->GetContent());
}
return false;
}
@ -3362,7 +3363,8 @@ nsDisplayTransform::ShouldPrerenderTransformedContent(nsDisplayListBuilder* aBui
if (aLogAnimations) {
nsCString message;
message.AppendLiteral("Performance warning: Async animation disabled because frame was not marked active for transform animation");
CommonElementAnimationData::LogAsyncAnimationFailure(message);
CommonElementAnimationData::LogAsyncAnimationFailure(message,
aFrame->GetContent());
}
return false;
}