limit pctHeightObserver to quirks mode bug 305975 r/sr=bzbarsky

This commit is contained in:
bmlk%gmx.de 2005-08-30 16:14:53 +00:00
Родитель 89727da8d1
Коммит 77004905b6
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -827,8 +827,8 @@ NS_METHOD nsTableCellFrame::Reflow(nsPresContext* aPresContext,
}
nsHTMLReflowState kidReflowState(aPresContext, aReflowState, firstKid, availSize, reason);
// mIPercentHeightObserver is for non table related frames inside cells
kidReflowState.mPercentHeightObserver = (nsIPercentHeightObserver *)this;
// mIPercentHeightObserver is for non table related frames inside cells in quirks mode
kidReflowState.mPercentHeightObserver = (eCompatibility_NavQuirks == compatMode) ? (nsIPercentHeightObserver *)this : nsnull;
// Assume the inner child will stay positioned exactly where it is. Later in
// VerticallyAlignChild() we'll move it if it turns out to be wrong. This