Log when we can't use async animations due to pseudos, no bug, r=cjones

This commit is contained in:
David Zbarsky 2012-08-24 15:08:18 -04:00
parent ed76a52681
commit be2e552065
2 changed files with 6 additions and 0 deletions

View File

@ -300,6 +300,9 @@ bool
ElementAnimations::CanPerformOnCompositorThread() const
{
if (mElementProperty != nsGkAtoms::animationsProperty) {
if (nsLayoutUtils::IsAnimationLoggingEnabled()) {
printf_stderr("Gecko bug: Async animation of pseudoelements not supported. See bug 771367\n");
}
return false;
}
bool hasGeometricProperty = false;

View File

@ -128,6 +128,9 @@ bool
ElementTransitions::CanPerformOnCompositorThread() const
{
if (mElementProperty != nsGkAtoms::transitionsProperty) {
if (nsLayoutUtils::IsAnimationLoggingEnabled()) {
printf_stderr("Gecko bug: Async animation of pseudoelements not supported. See bug 771367\n");
}
return false;
}
bool hasGeometricProperty = false;