From 5ed54c9e2b27818bc1fa4ca4a3e448b4d914568a Mon Sep 17 00:00:00 2001 From: "Carsten \"Tomcat\" Book" Date: Tue, 15 Jul 2014 10:30:26 +0200 Subject: [PATCH] Backed out changeset 376c45f4d905 (bug 1022612) --- layout/base/nsDisplayList.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/layout/base/nsDisplayList.cpp b/layout/base/nsDisplayList.cpp index 0a26f760a7bc..44e424e650dd 100644 --- a/layout/base/nsDisplayList.cpp +++ b/layout/base/nsDisplayList.cpp @@ -1737,10 +1737,8 @@ nsDisplayItem::RecomputeVisibility(nsDisplayListBuilder* aBuilder, // When we recompute visibility within layers we don't need to // expand the visible region for content behind plugins (the plugin // is not in the layer). - if (!ComputeVisibility(aBuilder, aVisibleRegion, nsRect())) { - mVisibleRect = nsRect(); + if (!ComputeVisibility(aBuilder, aVisibleRegion, nsRect())) return false; - } nsRegion opaque = TreatAsOpaque(this, aBuilder); aBuilder->SubtractFromVisibleRegion(aVisibleRegion, opaque);