set the quirk height default to NS_AUTOHEIGHT if we are in a unconstrained container bug 189840 r/sr=roc+moz a=asa

This commit is contained in:
bernd.mielke%snafu.de 2003-01-28 05:19:20 +00:00
Родитель df4bbdc629
Коммит 2f5fe7e4eb
2 изменённых файлов: 12 добавлений и 4 удалений

Просмотреть файл

@ -1427,8 +1427,12 @@ CalcQuirkContainingBlockHeight(const nsHTMLReflowState& aReflowState,
{
nsHTMLReflowState* firstBlockRS = nsnull; // a candidate for body frame
nsHTMLReflowState* firstAreaRS = nsnull; // a candidate for html frame
nscoord result = 0;
// initialize the default to NS_AUTOHEIGHT as this is the containings block
// computed height when this function is called. It is possible that we
// don't alter this height especially if we are restricted to one level
nscoord result = NS_AUTOHEIGHT;
const nsHTMLReflowState* rs = &aReflowState;
for (; rs && rs->frame; rs = (nsHTMLReflowState *)(rs->parentReflowState)) {
nsCOMPtr<nsIAtom> frameType;

Просмотреть файл

@ -1427,8 +1427,12 @@ CalcQuirkContainingBlockHeight(const nsHTMLReflowState& aReflowState,
{
nsHTMLReflowState* firstBlockRS = nsnull; // a candidate for body frame
nsHTMLReflowState* firstAreaRS = nsnull; // a candidate for html frame
nscoord result = 0;
// initialize the default to NS_AUTOHEIGHT as this is the containings block
// computed height when this function is called. It is possible that we
// don't alter this height especially if we are restricted to one level
nscoord result = NS_AUTOHEIGHT;
const nsHTMLReflowState* rs = &aReflowState;
for (; rs && rs->frame; rs = (nsHTMLReflowState *)(rs->parentReflowState)) {
nsCOMPtr<nsIAtom> frameType;