From 735ab827c5f2aa7afe1f575d1741d66f97f2489c Mon Sep 17 00:00:00 2001 From: Jeff Muizelaar Date: Mon, 16 Mar 2015 14:19:32 -0400 Subject: [PATCH] Bug 1143789. Remove unnecessary cast to BasicLayerManager. r=mstange --HG-- extra : rebase_source : ca8d18b5aae563a74f913f5b112c6e7c2bcea8f6 --- layout/base/FrameLayerBuilder.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/layout/base/FrameLayerBuilder.cpp b/layout/base/FrameLayerBuilder.cpp index 23e0763e954b..7b67b0c3c744 100644 --- a/layout/base/FrameLayerBuilder.cpp +++ b/layout/base/FrameLayerBuilder.cpp @@ -3604,8 +3604,7 @@ FrameLayerBuilder::StoreDataForFrame(nsIFrame* aFrame, FrameLayerBuilder::ClippedDisplayItem::~ClippedDisplayItem() { if (mInactiveLayerManager) { - BasicLayerManager* basic = static_cast(mInactiveLayerManager.get()); - basic->SetUserData(&gLayerManagerLayerBuilder, nullptr); + mInactiveLayerManager->SetUserData(&gLayerManagerLayerBuilder, nullptr); } }