Tell line layout about floater

This commit is contained in:
kipp%netscape.com 1998-08-04 21:16:32 +00:00
Родитель 4818d9956c
Коммит a205def808
2 изменённых файлов: 8 добавлений и 2 удалений

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

@ -25,7 +25,7 @@
#include "nsIView.h"
#include "nsHTMLIIDs.h"
#include "nsIPresContext.h"
#include "nsCSSLineLayout.h"
#include "nsCSSBlockFrame.h"
nsresult
nsPlaceholderFrame::NewFrame(nsIFrame** aInstancePtrResult,
@ -142,6 +142,9 @@ nsPlaceholderFrame::InlineReflow(nsCSSLineLayout& aLineLayout,
container->AddFloater(&presContext, aReflowState, mAnchoredItem, this);
}
// Let line layout know about the floater
aLineLayout.AddFloater(this);
aDesiredSize.width = 0;
aDesiredSize.height = 0;
aDesiredSize.ascent = 0;

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

@ -25,7 +25,7 @@
#include "nsIView.h"
#include "nsHTMLIIDs.h"
#include "nsIPresContext.h"
#include "nsCSSLineLayout.h"
#include "nsCSSBlockFrame.h"
nsresult
nsPlaceholderFrame::NewFrame(nsIFrame** aInstancePtrResult,
@ -142,6 +142,9 @@ nsPlaceholderFrame::InlineReflow(nsCSSLineLayout& aLineLayout,
container->AddFloater(&presContext, aReflowState, mAnchoredItem, this);
}
// Let line layout know about the floater
aLineLayout.AddFloater(this);
aDesiredSize.width = 0;
aDesiredSize.height = 0;
aDesiredSize.ascent = 0;