Bug 1232635 - since presContext is always a valid pointer remove the useless null check that also confused Coverity. r=bz

This commit is contained in:
Bogdan Postelnicu 2015-12-17 00:18:00 +01:00
parent ff840e5f16
commit e0fa8e46e2

View File

@ -5850,7 +5850,7 @@ FrameLayerBuilder::DrawPaintedLayer(PaintedLayer* aLayer,
FlashPaint(aContext);
}
if (presContext && presContext->GetDocShell() && isActiveLayerManager) {
if (presContext->GetDocShell() && isActiveLayerManager) {
nsDocShell* docShell = static_cast<nsDocShell*>(presContext->GetDocShell());
RefPtr<TimelineConsumers> timelines = TimelineConsumers::Get();