diff --git a/gfx/layers/ipc/LayerTransactionParent.cpp b/gfx/layers/ipc/LayerTransactionParent.cpp index c75568ce3861..366444b01fd5 100644 --- a/gfx/layers/ipc/LayerTransactionParent.cpp +++ b/gfx/layers/ipc/LayerTransactionParent.cpp @@ -343,7 +343,7 @@ LayerTransactionParent::RecvUpdate(const InfallibleTArray& cset, case Edit::TOpSetRoot: { MOZ_LAYERS_LOG(("[ParentSide] SetRoot")); - mRoot = AsLayerComposite(edit.get_OpSetRoot())->AsContainer(); + mRoot = AsLayerComposite(edit.get_OpSetRoot())->AsLayer(); break; } case Edit::TOpInsertAfter: { diff --git a/gfx/layers/ipc/LayerTransactionParent.h b/gfx/layers/ipc/LayerTransactionParent.h index 56fc129a6cba..8c5420f9f99c 100644 --- a/gfx/layers/ipc/LayerTransactionParent.h +++ b/gfx/layers/ipc/LayerTransactionParent.h @@ -44,7 +44,7 @@ public: LayerManagerComposite* layer_manager() const { return mLayerManager; } uint64_t GetId() const { return mId; } - ContainerLayer* GetRoot() const { return mRoot; } + Layer* GetRoot() const { return mRoot; } // ISurfaceAllocator virtual bool AllocShmem(size_t aSize, @@ -101,7 +101,7 @@ private: ShadowLayersManager* mShadowLayersManager; // Hold the root because it might be grafted under various // containers in the "real" layer tree - nsRefPtr mRoot; + nsRefPtr mRoot; // When this is nonzero, it refers to a layer tree owned by the // compositor thread. It is always true that // mId != 0 => mRoot == null diff --git a/layout/ipc/RenderFrameParent.cpp b/layout/ipc/RenderFrameParent.cpp index 1cd5242193c6..523989e666c2 100644 --- a/layout/ipc/RenderFrameParent.cpp +++ b/layout/ipc/RenderFrameParent.cpp @@ -428,7 +428,7 @@ BuildViewMap(ViewMap& oldContentViews, ViewMap& newContentViews, static void BuildBackgroundPatternFor(ContainerLayer* aContainer, - ContainerLayer* aShadowRoot, + Layer* aShadowRoot, const ViewConfig& aConfig, const gfxRGBA& aColor, LayerManager* aManager, @@ -733,7 +733,7 @@ RenderFrameParent::BuildLayer(nsDisplayListBuilder* aBuilder, mContainer->SetInheritedScale(1.0f, 1.0f); } - ContainerLayer* shadowRoot = GetRootLayer(); + Layer* shadowRoot = GetRootLayer(); if (!shadowRoot) { mContainer = nullptr; return nullptr; @@ -930,7 +930,7 @@ RenderFrameParent::GetLayerTreeId() const return mLayersId; } -ContainerLayer* +Layer* RenderFrameParent::GetRootLayer() const { LayerTransactionParent* shadowLayers = GetShadowLayers(); @@ -951,7 +951,7 @@ RenderFrameParent::BuildDisplayList(nsDisplayListBuilder* aBuilder, nsRect bounds = aFrame->EnsureInnerView()->GetBounds() + offset; clipState.ClipContentDescendants(bounds); - ContainerLayer* container = GetRootLayer(); + Layer* container = GetRootLayer(); if (aBuilder->IsForEventDelivery() && container) { ViewTransform offset = ViewTransform(GetContentRectLayerOffset(aFrame, aBuilder)); diff --git a/layout/ipc/RenderFrameParent.h b/layout/ipc/RenderFrameParent.h index fd5c89f41e8a..4d35bfd50d6d 100644 --- a/layout/ipc/RenderFrameParent.h +++ b/layout/ipc/RenderFrameParent.h @@ -122,7 +122,7 @@ private: LayerTransactionParent* GetShadowLayers() const; uint64_t GetLayerTreeId() const; - ContainerLayer* GetRootLayer() const; + Layer* GetRootLayer() const; // When our child frame is pushing transactions directly to the // compositor, this is the ID of its layer tree in the compositor's