зеркало из https://github.com/mozilla/pjs.git
Make sure to push a null float containing block for <mtd>. Bug 399676, r+sr=roc
This commit is contained in:
Родитель
85f5c4d8aa
Коммит
a714140fe0
|
@ -4077,7 +4077,7 @@ nsCSSFrameConstructor::ConstructTableCellFrame(nsFrameConstructorState& aState,
|
||||||
InitAndRestoreFrame(aState, aContent, aNewCellOuterFrame, nsnull, aNewCellInnerFrame);
|
InitAndRestoreFrame(aState, aContent, aNewCellOuterFrame, nsnull, aNewCellInnerFrame);
|
||||||
|
|
||||||
if (!aIsPseudo) {
|
if (!aIsPseudo) {
|
||||||
PRBool haveFirstLetterStyle, haveFirstLineStyle;
|
PRBool haveFirstLetterStyle = PR_FALSE, haveFirstLineStyle = PR_FALSE;
|
||||||
if (isBlock) {
|
if (isBlock) {
|
||||||
ShouldHaveSpecialBlockStyle(aContent, aStyleContext,
|
ShouldHaveSpecialBlockStyle(aContent, aStyleContext,
|
||||||
&haveFirstLetterStyle, &haveFirstLineStyle);
|
&haveFirstLetterStyle, &haveFirstLineStyle);
|
||||||
|
@ -4085,10 +4085,9 @@ nsCSSFrameConstructor::ConstructTableCellFrame(nsFrameConstructorState& aState,
|
||||||
|
|
||||||
// The block frame is a float container
|
// The block frame is a float container
|
||||||
nsFrameConstructorSaveState floatSaveState;
|
nsFrameConstructorSaveState floatSaveState;
|
||||||
if (isBlock) {
|
aState.PushFloatContainingBlock(isBlock ? aNewCellInnerFrame : nsnull,
|
||||||
aState.PushFloatContainingBlock(aNewCellInnerFrame, floatSaveState,
|
floatSaveState,
|
||||||
haveFirstLetterStyle, haveFirstLineStyle);
|
haveFirstLetterStyle, haveFirstLineStyle);
|
||||||
}
|
|
||||||
|
|
||||||
// Process the child content
|
// Process the child content
|
||||||
nsFrameItems childItems;
|
nsFrameItems childItems;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче