Bug 857817 - Make AreLayerMarkedActive aware of preserve-3d transformed frames. r=roc

This commit is contained in:
Matt Woodrow 2013-04-15 18:55:29 +12:00
parent 2efce68b21
commit 7394d7ef47

View File

@ -4583,7 +4583,14 @@ nsIFrame::AreLayersMarkedActive(nsChangeHint aChangeHint)
{
LayerActivity* layerActivity =
static_cast<LayerActivity*>(Properties().Get(LayerActivityProperty()));
return layerActivity && (layerActivity->mChangeHint & aChangeHint);
if (layerActivity && (layerActivity->mChangeHint & aChangeHint)) {
return true;
}
if (aChangeHint & nsChangeHint_UpdateTransformLayer &&
Preserves3D()) {
return GetParent()->AreLayersMarkedActive(nsChangeHint_UpdateTransformLayer);
}
return false;
}
/* static */ void