From 8847af4e487f748af5a998e251bfbc5367daa8bd Mon Sep 17 00:00:00 2001 From: "roc+%cs.cmu.edu" Date: Tue, 18 Sep 2007 02:54:48 +0000 Subject: [PATCH] Bug 139843. Back out width adjustment patch that breaks other things and may no longer be needed. r+sr+a=dbaron git-svn-id: svn://10.0.0.236/trunk@236188 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/generic/nsGfxScrollFrame.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/mozilla/layout/generic/nsGfxScrollFrame.cpp b/mozilla/layout/generic/nsGfxScrollFrame.cpp index 473a97b6e0a..e66e6a8d8d3 100644 --- a/mozilla/layout/generic/nsGfxScrollFrame.cpp +++ b/mozilla/layout/generic/nsGfxScrollFrame.cpp @@ -425,10 +425,6 @@ nsHTMLScrollFrame::ReflowScrolledFrame(const ScrollReflowState& aState, mInner.mVScrollbarBox->GetPrefSize(const_cast(aState.mBoxState)); availWidth = PR_MAX(0, availWidth - vScrollbarPrefSize.width); } - // pixel align the content - nsPresContext* presContext = PresContext(); - nscoord twp = nsPresContext::CSSPixelsToAppUnits(1); - availWidth -= availWidth % twp; // We're forcing the padding on our scrolled frame, so let it know what that // padding is. @@ -437,6 +433,7 @@ nsHTMLScrollFrame::ReflowScrolledFrame(const ScrollReflowState& aState, new nsMargin(aState.mReflowState.mComputedPadding), nsCSSOffsetState::DestroyMarginFunc); + nsPresContext* presContext = PresContext(); // Pass PR_FALSE for aInit so we can pass in the correct padding nsHTMLReflowState kidReflowState(presContext, aState.mReflowState, mInner.mScrolledFrame,