From 4dcc187fd58d34b6e9d6aeb4d3e95cc2afe5d8ec Mon Sep 17 00:00:00 2001 From: Timothy Nikkel Date: Thu, 7 Aug 2014 11:33:14 -0500 Subject: [PATCH] Bug 1042772. Set the dirty rect relative to the current frame, not the reference frame. r=roc The offsetToReferenceFrame is to the reference frame for this, since we are transformed we are the reference frame, so the offset was 0,0. So the computation still produced correct results. --- 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 f18b3e8e713d..a501de1ed27c 100644 --- a/layout/generic/nsFrame.cpp +++ b/layout/generic/nsFrame.cpp @@ -2105,7 +2105,7 @@ nsIFrame::BuildDisplayListForStackingContext(nsDisplayListBuilder* aBuilder, clipState.Restore(); // Revert to the dirtyrect coming in from the parent, without our transform // taken into account. - buildingDisplayList.SetDirtyRect(aDirtyRect + offsetToReferenceFrame); + buildingDisplayList.SetDirtyRect(aDirtyRect); if (Preserves3DChildren()) { WrapPreserve3DList(this, aBuilder, &resultList);