From a990ffa9faf86b74cd7f06a04fe13bc5c84b3fa7 Mon Sep 17 00:00:00 2001 From: Timothy Nikkel Date: Mon, 31 Jan 2011 21:23:37 -0600 Subject: [PATCH] Bug 626343. Revert accidental addition of unrelated debugging code in 73f7643d522d. a=oops DONTBUILD --- layout/base/FrameLayerBuilder.cpp | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/layout/base/FrameLayerBuilder.cpp b/layout/base/FrameLayerBuilder.cpp index f8f491f7a87..2d0f151a886 100644 --- a/layout/base/FrameLayerBuilder.cpp +++ b/layout/base/FrameLayerBuilder.cpp @@ -758,21 +758,8 @@ ContainerState::CreateOrRecycleThebesLayer(nsIFrame* aActiveScrolledRoot) // Set up transform so that 0,0 in the Thebes layer corresponds to the // (pixel-snapped) top-left of the aActiveScrolledRoot. nsPoint offset = mBuilder->ToReferenceFrame(aActiveScrolledRoot); - nsIntPoint pixOffset; - pixOffset.x = NSToIntRound(NSAppUnitsToFloatPixels(offset.x, float(aActiveScrolledRoot->PresContext()->AppUnitsPerDevPixel()))); - pixOffset.y = NSToIntRound(NSAppUnitsToFloatPixels(offset.y, float(aActiveScrolledRoot->PresContext()->AppUnitsPerDevPixel()))); - nsIntPoint pixOffset2 = offset.ToNearestPixels( + nsIntPoint pixOffset = offset.ToNearestPixels( aActiveScrolledRoot->PresContext()->AppUnitsPerDevPixel()); - if (pixOffset != pixOffset2) { - printf("offset %d %d offset/60 %d %d pixoffset %d %d pixoffset2 %d %d", offset.x, offset.y, offset.x/60, offset.y/60, pixOffset.x, pixOffset.y, pixOffset2.x, pixOffset2.y); - if (offset.y % 60 == 0) printf(" exact"); - if ((offset.y / 60)*60 == offset.y) printf(" exact2"); - printf(" float val %f double val %fL", NSAppUnitsToFloatPixels(offset.y, float(aActiveScrolledRoot->PresContext()->AppUnitsPerDevPixel())), - double(offset.y)/double(aActiveScrolledRoot->PresContext()->AppUnitsPerDevPixel())); - printf("\n"); - } - pixOffset.x = NSToIntRound(float(double(offset.x)/double(aActiveScrolledRoot->PresContext()->AppUnitsPerDevPixel()))); - pixOffset.y = NSToIntRound(float(double(offset.y)/double(aActiveScrolledRoot->PresContext()->AppUnitsPerDevPixel()))); gfxMatrix matrix; matrix.Translate(gfxPoint(pixOffset.x, pixOffset.y)); layer->SetTransform(gfx3DMatrix::From2D(matrix));