Make captions process children normally so that whitespace-only text frames get constructed. b=311822 r=bernd sr=roc

This commit is contained in:
dbaron%dbaron.org 2005-10-15 05:19:30 +00:00
Родитель dcc3d285f5
Коммит 28fed71fa8
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -3670,9 +3670,9 @@ nsCSSFrameConstructor::ConstructTableCaptionFrame(nsFrameConstructorState& aStat
aState.PushFloatContainingBlock(aNewFrame, floatSaveState,
haveFirstLetterStyle, haveFirstLineStyle);
nsFrameItems childItems;
// pass in aTableCreator so ProcessChildren will call TableProcessChildren
// pass in null tableCreator so ProcessChildren will not call TableProcessChildren
rv = ProcessChildren(aState, aContent, aNewFrame,
PR_TRUE, childItems, PR_TRUE, &aTableCreator);
PR_TRUE, childItems, PR_TRUE, nsnull);
if (NS_FAILED(rv)) return rv;
aNewFrame->SetInitialChildList(aState.mPresContext, nsnull,
childItems.childList);