From 94e1db456d0a0ba7a665befa1637e48407c82f8b Mon Sep 17 00:00:00 2001 From: "Thinker K.F. Li" Date: Sat, 6 Feb 2016 17:55:59 +1300 Subject: [PATCH] Bug 1243282 - Wrap items having clips with a separator. r=mattwoodrow --- layout/generic/nsFrame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout/generic/nsFrame.cpp b/layout/generic/nsFrame.cpp index 89d7c4acf793..a9a1663f802f 100644 --- a/layout/generic/nsFrame.cpp +++ b/layout/generic/nsFrame.cpp @@ -2237,7 +2237,7 @@ nsIFrame::BuildDisplayListForStackingContext(nsDisplayListBuilder* aBuilder, int index = 1; while (nsDisplayItem* item = resultList.RemoveBottom()) { - if (ItemParticipatesIn3DContext(this, item)) { + if (ItemParticipatesIn3DContext(this, item) && !item->GetClip().HasClip()) { // The frame of this item participates the same 3D context. WrapSeparatorTransform(aBuilder, this, dirtyRect, &nonparticipants, &participants, index++);