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
This commit is contained in:
roc+%cs.cmu.edu
2007-09-18 02:54:48 +00:00
parent 6f951ca3eb
commit 8847af4e48

View File

@@ -425,10 +425,6 @@ nsHTMLScrollFrame::ReflowScrolledFrame(const ScrollReflowState& aState,
mInner.mVScrollbarBox->GetPrefSize(const_cast<nsBoxLayoutState&>(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,