From ab740d2cd00c89363084a730d9c6ecac6282fad2 Mon Sep 17 00:00:00 2001 From: Timothy Nikkel Date: Thu, 7 Aug 2014 11:33:16 -0500 Subject: [PATCH] Bug 1042772. offsetToReferenceFrame is always zero when we use it. Remove it. r=mattwoodrow --- layout/generic/nsFrame.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/layout/generic/nsFrame.cpp b/layout/generic/nsFrame.cpp index a501de1ed27..00dc3fcbfce 100644 --- a/layout/generic/nsFrame.cpp +++ b/layout/generic/nsFrame.cpp @@ -1922,8 +1922,6 @@ nsIFrame::BuildDisplayListForStackingContext(nsDisplayListBuilder* aBuilder, AutoSaveRestoreBlendMode autoRestoreBlendMode(*aBuilder); aBuilder->SetContainsBlendModes(BlendModeSet()); - nsPoint offsetToReferenceFrame = aBuilder->ToReferenceFrame(this); - if (isTransformed) { const nsRect overflow = GetVisualOverflowRectRelativeToSelf(); if (aBuilder->IsForPainting() && @@ -1934,10 +1932,9 @@ nsIFrame::BuildDisplayListForStackingContext(nsDisplayListBuilder* aBuilder, return; } - dirtyRect += offsetToReferenceFrame; nsRect untransformedDirtyRect; if (nsDisplayTransform::UntransformRect(dirtyRect, overflow, this, - offsetToReferenceFrame, &untransformedDirtyRect)) { + nsPoint(0,0), &untransformedDirtyRect)) { dirtyRect = untransformedDirtyRect; } else { NS_WARNING("Unable to untransform dirty rect!");