mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
Removed some dead code
This commit is contained in:
parent
bdbcc0f971
commit
e1c16654f6
@ -224,22 +224,6 @@ RootFrame::Reflow(nsIPresContext& aPresContext,
|
||||
kidReflowState.reflowCommand = nsnull;
|
||||
}
|
||||
|
||||
// XXX TROY
|
||||
#if 0
|
||||
// For a height that's 'auto', make the frame as big as the available space
|
||||
// minus any top and bottom margins
|
||||
if (NS_AUTOHEIGHT == kidReflowState.computedHeight) {
|
||||
kidReflowState.computedHeight = aReflowState.availableHeight -
|
||||
kidReflowState.computedMargin.top - kidReflowState.computedMargin.bottom;
|
||||
|
||||
// Computed height is for the content area so reduce it by the amount of
|
||||
// space taken up by border and padding
|
||||
nsMargin borderPadding;
|
||||
kidReflowState.ComputeBorderPaddingFor(myOnlyChild, &aReflowState, borderPadding);
|
||||
kidReflowState.computedHeight -= borderPadding.top + borderPadding.bottom;
|
||||
}
|
||||
#endif
|
||||
|
||||
// Reflow the frame
|
||||
nsIHTMLReflow* htmlReflow;
|
||||
if (NS_OK == kidFrame->QueryInterface(kIHTMLReflowIID, (void**)&htmlReflow)) {
|
||||
|
@ -224,22 +224,6 @@ RootFrame::Reflow(nsIPresContext& aPresContext,
|
||||
kidReflowState.reflowCommand = nsnull;
|
||||
}
|
||||
|
||||
// XXX TROY
|
||||
#if 0
|
||||
// For a height that's 'auto', make the frame as big as the available space
|
||||
// minus any top and bottom margins
|
||||
if (NS_AUTOHEIGHT == kidReflowState.computedHeight) {
|
||||
kidReflowState.computedHeight = aReflowState.availableHeight -
|
||||
kidReflowState.computedMargin.top - kidReflowState.computedMargin.bottom;
|
||||
|
||||
// Computed height is for the content area so reduce it by the amount of
|
||||
// space taken up by border and padding
|
||||
nsMargin borderPadding;
|
||||
kidReflowState.ComputeBorderPaddingFor(myOnlyChild, &aReflowState, borderPadding);
|
||||
kidReflowState.computedHeight -= borderPadding.top + borderPadding.bottom;
|
||||
}
|
||||
#endif
|
||||
|
||||
// Reflow the frame
|
||||
nsIHTMLReflow* htmlReflow;
|
||||
if (NS_OK == kidFrame->QueryInterface(kIHTMLReflowIID, (void**)&htmlReflow)) {
|
||||
|
Loading…
Reference in New Issue
Block a user