mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 966397. Don't try to add fixed-pos metadata for inactive layer subtrees. r=mattwoodrow
--HG-- extra : rebase_source : 119635c63af471a0d6384901d99f242b14a39e9a
This commit is contained in:
parent
f4c52a42e7
commit
39c3f2bf7b
@ -1666,6 +1666,11 @@ ContainerState::FindFixedPosFrameForLayerData(const nsIFrame* aAnimatedGeometryR
|
|||||||
nsIntRegion* aVisibleRegion,
|
nsIntRegion* aVisibleRegion,
|
||||||
bool* aIsSolidColorInVisibleRegion)
|
bool* aIsSolidColorInVisibleRegion)
|
||||||
{
|
{
|
||||||
|
if (!mManager->IsWidgetLayerManager()) {
|
||||||
|
// Never attach any fixed-pos metadata to inactive layers, it's pointless!
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
nsPresContext* presContext = mContainerFrame->PresContext();
|
nsPresContext* presContext = mContainerFrame->PresContext();
|
||||||
nsIFrame* viewport = presContext->PresShell()->GetRootFrame();
|
nsIFrame* viewport = presContext->PresShell()->GetRootFrame();
|
||||||
const nsIFrame* result = nullptr;
|
const nsIFrame* result = nullptr;
|
||||||
|
Loading…
Reference in New Issue
Block a user