table captions are float containing blocks, bug 291520 r/sr=bzbarsky a=asa

This commit is contained in:
bmlk%gmx.de 2005-04-29 04:11:31 +00:00
Родитель 74e113ead6
Коммит 94055d0f57
1 изменённых файлов: 8 добавлений и 0 удалений

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

@ -3399,6 +3399,14 @@ nsCSSFrameConstructor::ConstructTableCaptionFrame(nsFrameConstructorState& aStat
// XXXbz should we be passing in a non-null aContentParentFrame?
nsHTMLContainerFrame::CreateViewForFrame(aNewFrame, nsnull, PR_FALSE);
PRBool haveFirstLetterStyle, haveFirstLineStyle;
HaveSpecialBlockStyle(aContent, aStyleContext,
&haveFirstLetterStyle, &haveFirstLineStyle);
// The caption frame is a float container
nsFrameConstructorSaveState floatSaveState;
aState.PushFloatContainingBlock(aNewFrame, floatSaveState,
haveFirstLetterStyle, haveFirstLineStyle);
nsFrameItems childItems;
// pass in aTableCreator so ProcessChildren will call TableProcessChildren
rv = ProcessChildren(aState, aContent, aNewFrame,