--- a/layout/base/PresShell.cpp
+++ b/layout/base/PresShell.cpp
@@ -5038,18 +5038,18 @@ already_AddRefed<SourceSurface> PresShel
for (const UniquePtr<RangePaintInfo>& rangeInfo : aItems) {
// the display lists paint relative to the offset from the reference
// frame, so account for that translation too:
gfxPoint rootOffset = nsLayoutUtils::PointToGfxPoint(
rangeInfo->mRootOffset, pc->AppUnitsPerDevPixel());
ctx->SetMatrixDouble(initialTM.PreTranslate(rootOffset));
aArea.MoveBy(-rangeInfo->mRootOffset.x, -rangeInfo->mRootOffset.y);
nsRegion visible(aArea);
- RefPtr<LayerManager> layerManager = rangeInfo->mList.PaintRoot(
- &rangeInfo->mBuilder, ctx, nsDisplayList::PAINT_DEFAULT, Nothing());
+ rangeInfo->mList.PaintRoot(&rangeInfo->mBuilder, ctx,
+ nsDisplayList::PAINT_DEFAULT, Nothing());
aArea.MoveBy(rangeInfo->mRootOffset.x, rangeInfo->mRootOffset.y);
}
// restore the old selection display state
frameSelection->SetDisplaySelection(oldDisplaySelection);
return dt->Snapshot();
}
@@ -6370,18 +6370,18 @@ void PresShell::Paint(nsView* aViewToPai
if (renderer->GetBackendType() == layers::LayersBackend::LAYERS_WR) {
LayoutDeviceRect bounds = LayoutDeviceRect::FromAppUnits(
presContext->GetVisibleArea(), presContext->AppUnitsPerDevPixel());
WebRenderBackgroundData data(wr::ToLayoutRect(bounds),
wr::ToColorF(ToDeviceColor(bgcolor)));
WrFiltersHolder wrFilters;
layerManager->SetTransactionIdAllocator(presContext->RefreshDriver());
- layerManager->AsWebRenderLayerManager()->EndTransactionWithoutLayer(
- nullptr, nullptr, std::move(wrFilters), &data, 0);
+ layerManager->EndTransactionWithoutLayer(nullptr, nullptr,
+ std::move(wrFilters), &data, 0);
return;
}
FallbackRenderer* fallback = renderer->AsFallback();
MOZ_ASSERT(fallback);
if (aFlags & PaintFlags::PaintComposite) {
nsIntRect bounds = presContext->GetVisibleArea().ToOutsidePixels(