зеркало из https://github.com/mozilla/gecko-dev.git
table captions are float containing blocks, bug 291520 r/sr=bzbarsky a=asa
This commit is contained in:
Родитель
74e113ead6
Коммит
94055d0f57
|
@ -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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче