mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 02:57:38 +00:00
Bug 857817 - Make AreLayerMarkedActive aware of preserve-3d transformed frames. r=roc
This commit is contained in:
parent
2efce68b21
commit
7394d7ef47
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user