From 5d77d784505ebcd50d3678f23be81825370831bb Mon Sep 17 00:00:00 2001 From: "troy%netscape.com" Date: Sat, 6 Mar 1999 01:58:33 +0000 Subject: [PATCH] Removed some code that is no longer needed --- layout/generic/nsHTMLFrame.cpp | 4 ---- layout/html/base/src/nsHTMLFrame.cpp | 4 ---- 2 files changed, 8 deletions(-) diff --git a/layout/generic/nsHTMLFrame.cpp b/layout/generic/nsHTMLFrame.cpp index 17b09e8d2bbb..a31e9f71059a 100644 --- a/layout/generic/nsHTMLFrame.cpp +++ b/layout/generic/nsHTMLFrame.cpp @@ -243,10 +243,6 @@ RootFrame::Reflow(nsIPresContext& aPresContext, // Reflow the frame nsIHTMLReflow* htmlReflow; if (NS_OK == kidFrame->QueryInterface(kIHTMLReflowIID, (void**)&htmlReflow)) { - // XXX Temporary hack until the block/inline code changes. It expects - // the available width to be the space minus any margins... - kidReflowState.availableWidth -= kidReflowState.computedMargin.left + - kidReflowState.computedMargin.right; ReflowChild(kidFrame, aPresContext, kidDesiredSize, kidReflowState, aStatus); diff --git a/layout/html/base/src/nsHTMLFrame.cpp b/layout/html/base/src/nsHTMLFrame.cpp index 17b09e8d2bbb..a31e9f71059a 100644 --- a/layout/html/base/src/nsHTMLFrame.cpp +++ b/layout/html/base/src/nsHTMLFrame.cpp @@ -243,10 +243,6 @@ RootFrame::Reflow(nsIPresContext& aPresContext, // Reflow the frame nsIHTMLReflow* htmlReflow; if (NS_OK == kidFrame->QueryInterface(kIHTMLReflowIID, (void**)&htmlReflow)) { - // XXX Temporary hack until the block/inline code changes. It expects - // the available width to be the space minus any margins... - kidReflowState.availableWidth -= kidReflowState.computedMargin.left + - kidReflowState.computedMargin.right; ReflowChild(kidFrame, aPresContext, kidDesiredSize, kidReflowState, aStatus);